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 Cybersource Collection (#3657)
likhinbopanna9f385008106e
diff --git a/postman/collection-dir/cybersource/.auth.json b/postman/collection-dir/cybersource/.auth.jsonnew file mode 100644index 0000000000..915a283579--- /dev/null+++ b/postman/collection-dir/cybersource/.auth.json@@ -0,0 +1,22 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ }+}diff --git a/postman/collection-dir/cybersource/.event.meta.json b/postman/collection-dir/cybersource/.event.meta.jsonnew file mode 100644index 0000000000..2df9d47d93--- /dev/null+++ b/postman/collection-dir/cybersource/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.prerequest.js",+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/.info.json b/postman/collection-dir/cybersource/.info.jsonnew file mode 100644index 0000000000..a57dfe35e3--- /dev/null+++ b/postman/collection-dir/cybersource/.info.json@@ -0,0 +1,9 @@+{+ "info": {+ "_postman_id": "def65b5c-dc11-4917-a1bb-508988011eff",+ "name": "cybersource",+ "description": "## Get started\n\nJuspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. \nYou can consume the APIs directly using your favorite HTTP/REST library. \nWe have a testing environment referred to \"sandbox\", which you can setup to test API calls without affecting production data.\n\n### Base URLs\n\nUse the following base URLs when making requests to the APIs:\n\n| Environment | Base URL |\n| --- | --- |\n| Sandbox | [https://sandbox.hyperswitch.io](https://sandbox.hyperswitch.io) |\n| Production | [https://router.juspay.io](https://router.juspay.io) |\n\n# Authentication\n\nWhen you sign up for an account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header. \nNever share your secret api keys. Keep them guarded and secure.\n\nContact Support: \nName: Juspay Support \nEmail: [[email protected]](mailto:[email protected])",+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",+ "_exporter_id": "24206034"+ }+}diff --git a/postman/collection-dir/cybersource/.meta.json b/postman/collection-dir/cybersource/.meta.jsonnew file mode 100644index 0000000000..91b6a65c5b--- /dev/null+++ b/postman/collection-dir/cybersource/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Health check",+ "Flow Testcases"+ ]+}diff --git a/postman/collection-dir/cybersource/.variable.json b/postman/collection-dir/cybersource/.variable.jsonnew file mode 100644index 0000000000..1800610b83--- /dev/null+++ b/postman/collection-dir/cybersource/.variable.json@@ -0,0 +1,96 @@+{+ "variable": [+ {+ "key": "baseUrl",+ "value": "",+ "type": "string"+ },+ {+ "key": "admin_api_key",+ "value": "",+ "type": "string"+ },+ {+ "key": "api_key",+ "value": "",+ "type": "string"+ },+ {+ "key": "merchant_id",+ "value": ""+ },+ {+ "key": "payment_id",+ "value": ""+ },+ {+ "key": "customer_id",+ "value": "cybersourcecustomer"+ },+ {+ "key": "mandate_id",+ "value": ""+ },+ {+ "key": "payment_method_id",+ "value": ""+ },+ {+ "key": "refund_id",+ "value": ""+ },+ {+ "key": "merchant_connector_id",+ "value": ""+ },+ {+ "key": "client_secret",+ "value": "",+ "type": "string"+ },+ {+ "key": "connector_api_key",+ "value": "",+ "type": "string"+ },+ {+ "key": "publishable_key",+ "value": "",+ "type": "string"+ },+ {+ "key": "api_key_id",+ "value": "",+ "type": "string"+ },+ {+ "key": "payment_token",+ "value": ""+ },+ {+ "key": "gateway_merchant_id",+ "value": "",+ "type": "string"+ },+ {+ "key": "certificate",+ "value": "",+ "type": "string"+ },+ {+ "key": "certificate_keys",+ "value": "",+ "type": "string"+ },+ {+ "key": "connector_key1",+ "value": "",+ "type": "string"+ },+ {+ "key": "connector_api_secret",+ "value": "",+ "type": "string"+ }+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/.meta.jsonnew file mode 100644index 0000000000..1bbce84368--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "QuickStart",+ "Happy Cases",+ "Variation Cases"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.jsonnew file mode 100644index 0000000000..9339372cc7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.json@@ -0,0 +1,30 @@+{+ "childrenOrder": [+ "Scenario1-Create payment with confirm true",+ "Scenario2-Create payment with confirm false",+ "Scenario2a-Create payment with confirm false card holder name null",+ "Scenario2b-Create payment with confirm false card holder name empty",+ "Scenario3-Create payment without PMD",+ "Scenario4-Create payment with Manual capture",+ "Scenario4a-Create payment with partial capture",+ "Scenario5-Void the payment",+ "Scenario6-Refund full payment",+ "Scenario6a-Partial refund",+ "Scenario7-Create a mandate and recurring payment",+ "Scenario7a-Manual capture for recurring payments",+ "Scenario8-Refund recurring payment",+ "Scenario9-Add card flow",+ "Scenario10-Don't Pass CVV for save card flow and verifysuccess payment",+ "Scenario11-Save card payment with manual capture",+ "Scenario12-Zero auth mandates",+ "Scenario13-Incremental auth",+ "Scenario14-Incremental auth for mandates",+ "Scenario15-Incremental auth with partial capture",+ "Scenario16-Verify PML for mandate",+ "Scenario17-Revoke mandates",+ "Scenario18-Update mandate card details",+ "Scenario19-Create 3ds payment",+ "Scenario20-Create 3ds mandate",+ "Scenario21-Create a mandate without customer acceptance"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.jsonnew file mode 100644index 0000000000..60051ecca2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.jsnew file mode 100644index 0000000000..03f71bc5fc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.jsonnew file mode 100644index 0000000000..a38f7113dc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json@@ -0,0 +1,97 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "business_country": "US",+ "business_label": "default",+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "01",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari",+ "last_name": "sundari"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari",+ "last_name": "sundari"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..03afa8d96f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/.meta.jsonnew file mode 100644index 0000000000..1ebea8f5e8--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "List payment methods for a Customer",+ "Save card payments - Create",+ "Save card payments - Confirm"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..f844efad42--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/event.test.js@@ -0,0 +1,20 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:customer_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){}++if (jsonData?.customer_payment_methods[0]?.payment_token) {+ pm.collectionVariables.set("payment_token", jsonData.customer_payment_methods[0].payment_token);+ console.log("- use {{payment_token}} as collection variable for value", jsonData.customer_payment_methods[0].payment_token);+} else {+ console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..cff6d6d715--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/request.json@@ -0,0 +1,28 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "variable": [+ {+ "key": "customer_id",+ "value": "{{customer_id}}",+ "description": "//Pass the customer id"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular Customer ID"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..31c6af0dfb--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/event.test.js@@ -0,0 +1,41 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..d69394e292--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/request.json@@ -0,0 +1,99 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "stripesavecard_{{random_number}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "setup_future_usage": "on_session",+ "payment_method": "card",+ "payment_method_type": "credit",+ "payment_method_data": {+ "card": {+ "card_number": "371449635398431",+ "card_exp_month": "03",+ "card_exp_year": "2030",+ "card_holder_name": "joseph Doe",+ "card_cvc": "7373"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/event.test.jsnew file mode 100644index 0000000000..28a0d23f0b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "cybersource" for "connector"+if (jsonData?.connector) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'connector' matches 'cybersource'",+ function () {+ pm.expect(jsonData.connector).to.eql("cybersource");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test("[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'", function() {+ pm.expect(jsonData.status).to.eql("succeeded");+ })};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/request.jsonnew file mode 100644index 0000000000..a1442beda7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/request.json@@ -0,0 +1,65 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_token": "{{payment_token}}"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/event.test.jsnew file mode 100644index 0000000000..24a2a8d65f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/event.test.js@@ -0,0 +1,42 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/request.jsonnew file mode 100644index 0000000000..5890966b8b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/request.json@@ -0,0 +1,88 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario10-Don't Pass CVV for save card flow and verifysuccess payment/Save card payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/.meta.jsonnew file mode 100644index 0000000000..406fa0753a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/.meta.json@@ -0,0 +1,13 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "List payment methods for a Customer",+ "Save card payments - Create",+ "Save card payments - Confirm",+ "Payments - Capture",+ "Payments - Retrieve-copy",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..f844efad42--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/event.test.js@@ -0,0 +1,20 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:customer_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){}++if (jsonData?.customer_payment_methods[0]?.payment_token) {+ pm.collectionVariables.set("payment_token", jsonData.customer_payment_methods[0].payment_token);+ console.log("- use {{payment_token}} as collection variable for value", jsonData.customer_payment_methods[0].payment_token);+} else {+ console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..cff6d6d715--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/request.json@@ -0,0 +1,28 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "variable": [+ {+ "key": "customer_id",+ "value": "{{customer_id}}",+ "description": "//Pass the customer id"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular Customer ID"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..962c263b0c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/event.test.js@@ -0,0 +1,97 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("cybersource");+});++// Response body should have value "6540" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6540'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6540);+ },+ );+}++// Response body should have value "6540" for "amount_capturable"+if (jsonData?.amount_capturable) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",+ function () {+ pm.expect(jsonData.amount_capturable).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/request.jsonnew file mode 100644index 0000000000..8efb99d3c9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 6540,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..7e61229511--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/event.test.js@@ -0,0 +1,51 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..5332a1326c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/request.json@@ -0,0 +1,99 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "adyensavecard_{{random_number}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "setup_future_usage": "on_session",+ "payment_method": "card",+ "payment_method_type": "credit",+ "payment_method_data": {+ "card": {+ "card_number": "371449635398431",+ "card_exp_month": "03",+ "card_exp_year": "2030",+ "card_holder_name": "joseph Doe",+ "card_cvc": "7373"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..48276c3fd6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,93 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("cybersource");+});++// Response body should have value "6540" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6540'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6540);+ },+ );+}++// 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);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..533e04ef07--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/event.test.js@@ -0,0 +1,93 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("cybersource");+});++// Response body should have value "6540" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6000'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6540);+ },+ );+}++// 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);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..b3499d9a0d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/event.test.js@@ -0,0 +1,55 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// 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("cybersource");+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/request.jsonnew file mode 100644index 0000000000..d18aaf8bef--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..cce8d2b8ea--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// 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/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/event.test.jsnew file mode 100644index 0000000000..aae1b9a08f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/event.test.js@@ -0,0 +1,72 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}+++// Response body should have value "cybersource" for "connector"+if (jsonData?.connector) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'connector' matches 'cybersource'",+ function () {+ pm.expect(jsonData.connector).to.eql("cybersource");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/request.jsonnew file mode 100644index 0000000000..5d78ead7de--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/request.json@@ -0,0 +1,66 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_token": "{{payment_token}}",+ "card_cvc": "7373"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/event.test.jsnew file mode 100644index 0000000000..31c6af0dfb--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/event.test.js@@ -0,0 +1,41 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/request.jsonnew file mode 100644index 0000000000..4c02f6d109--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/request.json@@ -0,0 +1,88 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario11-Save card payment with manual capture/Save card payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/.meta.jsonnew file mode 100644index 0000000000..5a828a2779--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Mandate Payments - Create",+ "Payments - Confirm",+ "Recurring Payments - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/event.test.jsnew file mode 100644index 0000000000..17c0ca2950--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/event.test.js@@ -0,0 +1,51 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};+++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'", function() {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+})};++// Response body should have "mandate_id"+pm.test("[POST]::/payments - Content check if 'mandate_id' exists", function() {+ pm.expect((typeof jsonData.mandate_id !== "undefined")).to.be.true;+});++// Response body should have "mandate_data"+pm.test("[POST]::/payments - Content check if 'mandate_data' exists", function() {+ pm.expect((typeof jsonData.mandate_data !== "undefined")).to.be.true;+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/request.jsonnew file mode 100644index 0000000000..71d51a8739--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/request.json@@ -0,0 +1,126 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 0,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "order_details": [+ {+ "product_name": "Apple iphone 15",+ "quantity": 1,+ "amount": 0,+ "account_name": "transaction_processing"+ }+ ],+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Mandate Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..2b8a0318d3--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/event.test.js@@ -0,0 +1,59 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};+++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log("- use {{mandate_id}} as collection variable for value",jsonData.mandate_id);+} else {+ console.log('INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'succeeded'", function() {+ pm.expect(jsonData.status).to.eql("succeeded");+})};++// Response body should have "mandate_id"+pm.test("[POST]::/payments - Content check if 'mandate_id' exists", function() {+ pm.expect((typeof jsonData.mandate_id !== "undefined")).to.be.true;+});++// Response body should have "mandate_data"+pm.test("[POST]::/payments - Content check if 'mandate_data' exists", function() {+ pm.expect((typeof jsonData.mandate_data !== "undefined")).to.be.true;+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..a53d07461a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/request.json@@ -0,0 +1,107 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ },+ {+ "key": "publishable_key",+ "value": "pk_snd_8798c6a9114646f8b970b93ad5765ddf",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "payment_method": "card",+ "payment_method_type": "credit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "03",+ "card_exp_year": "2030",+ "card_holder_name": "CLBRW1",+ "card_cvc": "737"+ }+ },+ "setup_future_usage": "off_session",+ "payment_type": "setup_mandate",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "125.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "multi_use": {+ "amount": 1000,+ "currency": "USD",+ "start_date": "2023-04-21T00:00:00Z",+ "end_date": "2023-05-21T00:00:00Z",+ "metadata": {+ "frequency": "13"+ }+ }+ }+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..0868d67db0--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/event.test.js@@ -0,0 +1,65 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};+++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log("- use {{mandate_id}} as collection variable for value",jsonData.mandate_id);+} else {+ console.log('INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};+++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'succeeded'", function() {+ pm.expect(jsonData.status).to.eql("succeeded");+})};++// Response body should have "mandate_id"+pm.test("[POST]::/payments - Content check if 'mandate_id' exists", function() {+ pm.expect((typeof jsonData.mandate_id !== "undefined")).to.be.true;+});++// Response body should have "mandate_data"+pm.test("[POST]::/payments - Content check if 'mandate_data' exists", function() {+ pm.expect((typeof jsonData.mandate_data !== "undefined")).to.be.true;+});++// Response body should have "payment_method_data"+pm.test("[POST]::/payments - Content check if 'payment_method_data' exists", function() {+ pm.expect((typeof jsonData.payment_method_data !== "undefined")).to.be.true;+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..7122da10b6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/request.json@@ -0,0 +1,124 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1000,+ "currency": "USD",+ "confirm": true,+ "business_country": "US",+ "business_label": "default",+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "three_ds",+ "return_url": "https://google.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "billing": {+ "address": {+ "first_name": "John",+ "last_name": "Doe",+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "first_name": "John",+ "last_name": "Doe",+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ },+ "order_details": [+ {+ "product_name": "Apple iphone 15",+ "quantity": 1,+ "amount": 1000,+ "account_name": "transaction_processing"+ }+ ]+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario12- Zero auth mandates/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/.meta.jsonnew file mode 100644index 0000000000..f429c3305a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/.meta.json@@ -0,0 +1,10 @@+{+ "childrenOrder": [+ "Payments-Create",+ "Incremental Authorization",+ "Payments - Retrieve",+ "Payments - Capture",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/event.test.jsnew file mode 100644index 0000000000..dbf6517a0d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/event.test.js@@ -0,0 +1,15 @@+pm.test("[POST]::/payments:id/incremental_authorizations - Content check if value for 'amount' matches '1001'", function () {+ // Parse the response JSON+ var jsonData = pm.response.json();++ // Check if the 'amount' in the response matches the expected value+ pm.expect(jsonData.incremental_authorizations[0].amount).to.eql(1001);+});++pm.test("[POST]::/payments:id/incremental_authorizations - Content check if value for 'status' matches 'success'", function () {+ // Parse the response JSON+ var jsonData = pm.response.json();++ // Check if the 'status' in the response matches the expected value+ pm.expect(jsonData.incremental_authorizations[0].status).to.eql("success");+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/request.jsonnew file mode 100644index 0000000000..7370c98307--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/request.json@@ -0,0 +1,26 @@+{+ "method": "POST",+ "header": [],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1001+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/{{payment_id}}/incremental_authorization",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ "{{payment_id}}",+ "incremental_authorization"+ ]+ }+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Incremental Authorization/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..772fa019b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "1001" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '1001'",+ function () {+ pm.expect(jsonData.amount).to.eql(1001);+ },+ );+}++// Response body should have value "1001" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '1001'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(1001);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/request.jsonnew file mode 100644index 0000000000..236b80311e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 1001,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..8cf4006b87--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/event.test.js@@ -0,0 +1,41 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};+++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_capture'", function() {+ pm.expect(jsonData.status).to.eql("requires_capture");+})};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..33a6d1f64b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/request.json@@ -0,0 +1,42 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?expand_attempts=true&force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "expand_attempts",+ "value": "true"+ },+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/event.test.jsnew file mode 100644index 0000000000..41883b25ac--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/event.test.js@@ -0,0 +1,35 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/request.jsonnew file mode 100644index 0000000000..f28f6281c7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/request.json@@ -0,0 +1,142 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ },+ {+ "key": "Authorization",+ "value": "",+ "type": "text",+ "disabled": true+ },+ {+ "key": "x-feature",+ "value": "integ-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1000,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "amount_to_capture": 1000,+ "description": "Its my first payment request",+ "capture_on": "2022-09-10T10:11:12Z",+ "return_url": "https://google.com",+ "name": "Preetam",+ "phone": "999999999",+ "phone_country_code": "+65",+ "authentication_type": "no_three_ds",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "09",+ "card_exp_year": "2027",+ "card_holder_name": "",+ "card_cvc": "975"+ }+ },+ "connector_metadata": {+ "noon": {+ "order_category": "pay"+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "128.0.0.1"+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "PL",+ "first_name": "preetam",+ "last_name": "revankar"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "PL",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "order_details": [+ {+ "product_name": "Apple iphone 15",+ "quantity": 1,+ "amount": 1000,+ "account_name": "transaction_processing"+ }+ ],+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "request_incremental_authorization": true,+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Payments-Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..5b54b717e2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "1001" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(1001);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/request.jsonnew file mode 100644index 0000000000..d48ee5a25b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 1001,+ "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/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..2b906dedf6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "1001" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '1001'",+ function () {+ pm.expect(jsonData.amount).to.eql(1001);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario13 Incremental auth/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/.meta.jsonnew file mode 100644index 0000000000..522a119629--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Incremental Authorization",+ "Payments - Retrieve",+ "Payments - Capture"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/event.test.jsnew file mode 100644index 0000000000..dbf6517a0d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/event.test.js@@ -0,0 +1,15 @@+pm.test("[POST]::/payments:id/incremental_authorizations - Content check if value for 'amount' matches '1001'", function () {+ // Parse the response JSON+ var jsonData = pm.response.json();++ // Check if the 'amount' in the response matches the expected value+ pm.expect(jsonData.incremental_authorizations[0].amount).to.eql(1001);+});++pm.test("[POST]::/payments:id/incremental_authorizations - Content check if value for 'status' matches 'success'", function () {+ // Parse the response JSON+ var jsonData = pm.response.json();++ // Check if the 'status' in the response matches the expected value+ pm.expect(jsonData.incremental_authorizations[0].status).to.eql("success");+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/request.jsonnew file mode 100644index 0000000000..7370c98307--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/request.json@@ -0,0 +1,26 @@+{+ "method": "POST",+ "header": [],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1001+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/{{payment_id}}/incremental_authorization",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ "{{payment_id}}",+ "incremental_authorization"+ ]+ }+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Incremental Authorization/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..772fa019b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "1001" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '1001'",+ function () {+ pm.expect(jsonData.amount).to.eql(1001);+ },+ );+}++// Response body should have value "1001" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '1001'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(1001);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/request.jsonnew file mode 100644index 0000000000..236b80311e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 1001,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..8cf4006b87--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/event.test.js@@ -0,0 +1,41 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};+++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_capture'", function() {+ pm.expect(jsonData.status).to.eql("requires_capture");+})};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..33a6d1f64b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/request.json@@ -0,0 +1,42 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?expand_attempts=true&force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "expand_attempts",+ "value": "true"+ },+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/event.test.jsnew file mode 100644index 0000000000..41883b25ac--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/event.test.js@@ -0,0 +1,35 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/request.jsonnew file mode 100644index 0000000000..f28f6281c7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/request.json@@ -0,0 +1,142 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ },+ {+ "key": "Authorization",+ "value": "",+ "type": "text",+ "disabled": true+ },+ {+ "key": "x-feature",+ "value": "integ-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1000,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "amount_to_capture": 1000,+ "description": "Its my first payment request",+ "capture_on": "2022-09-10T10:11:12Z",+ "return_url": "https://google.com",+ "name": "Preetam",+ "phone": "999999999",+ "phone_country_code": "+65",+ "authentication_type": "no_three_ds",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "09",+ "card_exp_year": "2027",+ "card_holder_name": "",+ "card_cvc": "975"+ }+ },+ "connector_metadata": {+ "noon": {+ "order_category": "pay"+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "128.0.0.1"+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "PL",+ "first_name": "preetam",+ "last_name": "revankar"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "PL",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "order_details": [+ {+ "product_name": "Apple iphone 15",+ "quantity": 1,+ "amount": 1000,+ "account_name": "transaction_processing"+ }+ ],+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "request_incremental_authorization": true,+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario14 Incremental auth for mandates/Payments-Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/.meta.jsonnew file mode 100644index 0000000000..784f5e06db--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/.meta.json@@ -0,0 +1,10 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Incremental Authorization",+ "Payments - Retrieve",+ "Payments - Capture",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/event.test.jsnew file mode 100644index 0000000000..dbf6517a0d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/event.test.js@@ -0,0 +1,15 @@+pm.test("[POST]::/payments:id/incremental_authorizations - Content check if value for 'amount' matches '1001'", function () {+ // Parse the response JSON+ var jsonData = pm.response.json();++ // Check if the 'amount' in the response matches the expected value+ pm.expect(jsonData.incremental_authorizations[0].amount).to.eql(1001);+});++pm.test("[POST]::/payments:id/incremental_authorizations - Content check if value for 'status' matches 'success'", function () {+ // Parse the response JSON+ var jsonData = pm.response.json();++ // Check if the 'status' in the response matches the expected value+ pm.expect(jsonData.incremental_authorizations[0].status).to.eql("success");+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/request.jsonnew file mode 100644index 0000000000..7370c98307--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/request.json@@ -0,0 +1,26 @@+{+ "method": "POST",+ "header": [],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1001+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/{{payment_id}}/incremental_authorization",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ "{{payment_id}}",+ "incremental_authorization"+ ]+ }+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Incremental Authorization/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..70312d39fe--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "partially_captured" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'",+ function () {+ pm.expect(jsonData.status).to.eql("partially_captured");+ },+ );+}++// Response body should have value "1001" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '1001'",+ function () {+ pm.expect(jsonData.amount).to.eql(1001);+ },+ );+}++// Response body should have value "500" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '500'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(500);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/request.jsonnew file mode 100644index 0000000000..4f054db295--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 500,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..8cf4006b87--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/event.test.js@@ -0,0 +1,41 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};+++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_capture'", function() {+ pm.expect(jsonData.status).to.eql("requires_capture");+})};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..33a6d1f64b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/request.json@@ -0,0 +1,42 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?expand_attempts=true&force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "expand_attempts",+ "value": "true"+ },+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/event.test.jsnew file mode 100644index 0000000000..41883b25ac--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/event.test.js@@ -0,0 +1,35 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/request.jsonnew file mode 100644index 0000000000..4e501feb9f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/request.json@@ -0,0 +1,150 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "Authorization",+ "value": "",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 1000,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "amount_to_capture": 1000,+ "description": "Its my first payment request",+ "capture_on": "2022-09-10T10:11:12Z",+ "return_url": "https://google.com",+ "name": "Preetam",+ "phone": "999999999",+ "phone_country_code": "+65",+ "authentication_type": "no_three_ds",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "09",+ "card_exp_year": "2027",+ "card_holder_name": "",+ "card_cvc": "975"+ }+ },+ "connector_metadata": {+ "noon": {+ "order_category": "pay"+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "128.0.0.1"+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "PL",+ "first_name": "preetam",+ "last_name": "revankar"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "PL",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "order_details": [+ {+ "product_name": "Apple iphone 15",+ "quantity": 1,+ "amount": 1000,+ "account_name": "transaction_processing"+ }+ ],+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "request_incremental_authorization": true,+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Payments-Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..98db0f1b7a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "500" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '500'",+ function () {+ pm.expect(jsonData.amount).to.eql(500);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/request.jsonnew file mode 100644index 0000000000..241a13121e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 500,+ "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/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..437b5a3c48--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "500" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '500'",+ function () {+ pm.expect(jsonData.amount).to.eql(500);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario15 Incremental auth with partial capture/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/.meta.jsonnew file mode 100644index 0000000000..086e649c47--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "List payment methods for a Merchant",+ "Payments - Create-copy",+ "List payment methods for a Merchant-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/event.test.jsnew file mode 100644index 0000000000..7ac718d6f2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/event.test.js@@ -0,0 +1,34 @@+// Validate status 2xx+pm.test(+ "[GET]::/payment_methods/:merchant_id - Status code is 2xx",+ function () {+ pm.response.to.be.success;+ },+);++// Validate if response header has matching content-type+pm.test(+ "[GET]::/payment_methods/:merchant_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) {}+++// Response body should have value "setup_mandate" for "payment_type"+if (jsonData?.payment_type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'payment_type' matches 'setup_mandate'",+ function () {+ pm.expect(jsonData.payment_type).to.eql("setup_mandate");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/request.jsonnew file mode 100644index 0000000000..bc72009ae2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/request.json@@ -0,0 +1,46 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/account/payment_methods?client_secret={{client_secret}}",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "account",+ "payment_methods"+ ],+ "query": [+ {+ "key": "client_secret",+ "value": "{{client_secret}}"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular merchant id."+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/event.test.jsnew file mode 100644index 0000000000..fe073c5a62--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/event.test.js@@ -0,0 +1,34 @@+// Validate status 2xx+pm.test(+ "[GET]::/payment_methods/:merchant_id - Status code is 2xx",+ function () {+ pm.response.to.be.success;+ },+);++// Validate if response header has matching content-type+pm.test(+ "[GET]::/payment_methods/:merchant_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) {}+++// Response body should have value "new_mandate" for "payment_type"+if (jsonData?.payment_type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'payment_type' matches 'new_mandate'",+ function () {+ pm.expect(jsonData.payment_type).to.eql("new_mandate");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/request.jsonnew file mode 100644index 0000000000..bc72009ae2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/request.json@@ -0,0 +1,46 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/account/payment_methods?client_secret={{client_secret}}",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "account",+ "payment_methods"+ ],+ "query": [+ {+ "key": "client_secret",+ "value": "{{client_secret}}"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular merchant id."+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/List payment methods for a Merchant/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/event.test.jsnew file mode 100644index 0000000000..aac7a8add2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/event.test.js@@ -0,0 +1,73 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log(+ "- use {{customer_id}} as collection variable for value",+ jsonData.customer_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/request.jsonnew file mode 100644index 0000000000..0aba8b9170--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 0,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "payment_type": "setup_mandate",+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/event.test.jsnew file mode 100644index 0000000000..982b4df0e3--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/event.test.js@@ -0,0 +1,87 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_confirmation" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_confirmation'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_confirmation");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/request.jsonnew file mode 100644index 0000000000..480173f427--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario16-Verify PML for mandate/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/.meta.jsonnew file mode 100644index 0000000000..64790ff219--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/.meta.json@@ -0,0 +1,9 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "List - Mandates",+ "Revoke - Mandates",+ "List - Mandates-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/event.test.jsnew file mode 100644index 0000000000..aee3da3b62--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/event.test.js@@ -0,0 +1,39 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "revoked" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'revoked'",+ function () {+ pm.expect(jsonData.status).to.eql("revoked");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);+++diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/request.jsonnew file mode 100644index 0000000000..349b511744--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/request.json@@ -0,0 +1,27 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}",+ "description": "(Required) Unique mandate id"+ }+ ]+ },+ "description": "To list the details of a mandate"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/event.test.jsnew file mode 100644index 0000000000..3ad4ac6050--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/event.test.js@@ -0,0 +1,39 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "active" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'active'",+ function () {+ pm.expect(jsonData.status).to.eql("active");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);+++diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/request.jsonnew file mode 100644index 0000000000..349b511744--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/request.json@@ -0,0 +1,27 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}",+ "description": "(Required) Unique mandate id"+ }+ ]+ },+ "description": "To list the details of a mandate"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/List - Mandates/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9d11debb6e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/event.test.js@@ -0,0 +1,98 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/request.jsonnew file mode 100644index 0000000000..f0be44bec9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/event.test.jsnew file mode 100644index 0000000000..74c5e000fc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/event.test.js@@ -0,0 +1,37 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "revoked" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'revoked'",+ function () {+ pm.expect(jsonData.status).to.eql("revoked");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/request.jsonnew file mode 100644index 0000000000..3c7b05bbde--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/request.json@@ -0,0 +1,27 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/revoke/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ "revoke",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}"+ }+ ]+ },+ "description": "To revoke a mandate registered against a customer"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario17- Revoke mandates/Revoke - Mandates/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/.meta.jsonnew file mode 100644index 0000000000..20ac234bf9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/.meta.json@@ -0,0 +1,11 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "List - Mandates",+ "Mandate - Update",+ "List - Mandates-copy",+ "Recurring Payments - Create",+ "Payments - Retrieve-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/event.test.jsnew file mode 100644index 0000000000..0d07a384ae--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/event.test.js@@ -0,0 +1,46 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "active" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'active'",+ function () {+ pm.expect(jsonData.status).to.eql("active");+ },+ );+}++pm.test("[POST]::/payments - Verify last 4 digits of the card", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.card.last4_digits).to.eql("1111");+});++pm.test("[POST]::/payments - Verify card expiration month", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.card.card_exp_month).to.eql("12");+});++pm.test("[POST]::/payments - Verify card expiration year", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.card.card_exp_year).to.eql("30");+});+++diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/request.jsonnew file mode 100644index 0000000000..349b511744--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/request.json@@ -0,0 +1,27 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}",+ "description": "(Required) Unique mandate id"+ }+ ]+ },+ "description": "To list the details of a mandate"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/event.test.jsnew file mode 100644index 0000000000..3a7c6c4468--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/event.test.js@@ -0,0 +1,46 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "active" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'active'",+ function () {+ pm.expect(jsonData.status).to.eql("active");+ },+ );+}++pm.test("[POST]::/payments - Verify last 4 digits of the card", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.card.last4_digits).to.eql("4242");+});++pm.test("[POST]::/payments - Verify card expiration month", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.card.card_exp_month).to.eql("10");+});++pm.test("[POST]::/payments - Verify card expiration year", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.card.card_exp_year).to.eql("25");+});+++diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/request.jsonnew file mode 100644index 0000000000..349b511744--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/request.json@@ -0,0 +1,27 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}",+ "description": "(Required) Unique mandate id"+ }+ ]+ },+ "description": "To list the details of a mandate"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/List - Mandates/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/event.test.jsnew file mode 100644index 0000000000..13d57327d2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/event.test.js@@ -0,0 +1,80 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/request.jsonnew file mode 100644index 0000000000..b8a76d3412--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/request.json@@ -0,0 +1,102 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 0,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "12",+ "card_exp_year": "30",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "payment_type": "setup_mandate",+ "setup_future_usage": "off_session",+ "mandate_data": {+ "update_mandate_id": "{{mandate_id}}",+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Mandate -Update/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/event.test.jsnew file mode 100644index 0000000000..29cba98918--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/event.test.js@@ -0,0 +1,109 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log(+ "- use {{customer_id}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/request.jsonnew file mode 100644index 0000000000..4a69899716--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 0,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "customer_id": "customer_{{$randomAbbreviation}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "payment_type": "setup_mandate",+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..fe8fa706b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,75 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..4d0a9b9ca2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/event.test.js@@ -0,0 +1,87 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..e2ddde7136--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/event.test.js@@ -0,0 +1,95 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);++// Response body should have "payment_method_data"+pm.test(+ "[POST]::/payments - Content check if 'payment_method_data' exists",+ function () {+ pm.expect(typeof jsonData.payment_method_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..0ae243421f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18- Update mandate card details/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/.meta.jsonnew file mode 100644index 0000000000..60051ecca2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..b2f94f95cf--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_customer_action" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_customer_action'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_customer_action");+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..19f21ff741--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/request.json@@ -0,0 +1,98 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "business_country": "US",+ "business_label": "default",+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "setup_future_usage": "on_session",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4000000000001000",+ "card_exp_month": "01",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari",+ "last_name": "sundari"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari",+ "last_name": "sundari"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..a41f14a8e9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_customer_action" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'requires_customer_action'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_customer_action");+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19- Create 3ds payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/.meta.jsonnew file mode 100644index 0000000000..57d3f8e2bc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..636ad8002f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.js@@ -0,0 +1,62 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..d1d4064139--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.json@@ -0,0 +1,85 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "Joseph Doe",+ "card_cvc": "123"+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.jsnew file mode 100644index 0000000000..905cc47900--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.jsonnew file mode 100644index 0000000000..e9f43ea28c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..cbed79e0c4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/.meta.jsonnew file mode 100644index 0000000000..60051ecca2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/event.test.jsnew file mode 100644index 0000000000..b2f94f95cf--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_customer_action" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_customer_action'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_customer_action");+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/request.jsonnew file mode 100644index 0000000000..576f81c5d8--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/request.json@@ -0,0 +1,111 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4000000000001000",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..a41f14a8e9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/event.test.js@@ -0,0 +1,67 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_customer_action" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'requires_customer_action'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_customer_action");+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20- Create 3ds mandate/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/.meta.jsonnew file mode 100644index 0000000000..eef3cab151--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/.meta.json@@ -0,0 +1,9 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "Payments - Retrieve",+ "Recurring Payments - Create",+ "Payments - Retrieve-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..f92fba3d04--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..c564a62c80--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/request.json@@ -0,0 +1,102 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "Joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/event.test.jsnew file mode 100644index 0000000000..ddc23615a0--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/event.test.js@@ -0,0 +1,100 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set customer_id as variable for jsonData.customer_id+if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log(+ "- use {{customer_id}} as collection variable for value",+ jsonData.customer_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/request.jsonnew file mode 100644index 0000000000..726a3b13fd--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/request.json@@ -0,0 +1,88 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "customer{{$randomAlphaNumeric}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..fe8fa706b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,75 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..e2ddde7136--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.js@@ -0,0 +1,95 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);++// Response body should have "payment_method_data"+pm.test(+ "[POST]::/payments - Content check if 'payment_method_data' exists",+ function () {+ pm.expect(typeof jsonData.payment_method_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..0ae243421f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/.meta.jsonnew file mode 100644index 0000000000..57d3f8e2bc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..0c2cda65e5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.test.js@@ -0,0 +1,61 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..604ac54144--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/request.json@@ -0,0 +1,85 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "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_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": null,+ "card_cvc": "123"+ }+ },+ "client_secret": "{{client_secret}}",+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.test.jsnew file mode 100644index 0000000000..905cc47900--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/request.jsonnew file mode 100644index 0000000000..e9f43ea28c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..cbed79e0c4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/.meta.jsonnew file mode 100644index 0000000000..57d3f8e2bc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..73f8c8f456--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.test.js@@ -0,0 +1,61 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..371ef616fe--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/request.json@@ -0,0 +1,85 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "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_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "",+ "card_cvc": "123"+ }+ },+ "client_secret": "{{client_secret}}",+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.test.jsnew file mode 100644index 0000000000..905cc47900--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/request.jsonnew file mode 100644index 0000000000..e9f43ea28c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..22f8a44875--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/.meta.jsonnew file mode 100644index 0000000000..57d3f8e2bc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..9d295f6604--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.js@@ -0,0 +1,60 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}+// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..8ac0a623f7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json@@ -0,0 +1,73 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "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_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "client_secret": "{{client_secret}}"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.jsnew file mode 100644index 0000000000..905cc47900--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.jsonnew file mode 100644index 0000000000..e9f43ea28c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..cbed79e0c4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/.meta.jsonnew file mode 100644index 0000000000..e4ef30e39e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Capture",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..44a6caa3e3--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - 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?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6540'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.jsonnew file mode 100644index 0000000000..8efb99d3c9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 6540,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c591a4e66b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..0f5db3f39d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..f88687240a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/.meta.jsonnew file mode 100644index 0000000000..e4ef30e39e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Capture",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..ad7ec549dd--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'",+ function () {+ pm.expect(jsonData.status).to.eql("partially_captured");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6000'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6000);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/request.jsonnew file mode 100644index 0000000000..8975575ca4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 6000,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c591a4e66b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..0f5db3f39d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..27ce6277ba--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'partially_captured'",+ function () {+ pm.expect(jsonData.status).to.eql("partially_captured");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario4a-Create payment with partial capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/.meta.jsonnew file mode 100644index 0000000000..14bab2fbd2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Cancel",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/event.test.jsnew file mode 100644index 0000000000..dcf3f19164--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/event.test.js@@ -0,0 +1,61 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/cancel - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/cancel - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/cancel - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "cancelled" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/cancel - Content check if value for 'status' matches 'cancelled'",+ function () {+ pm.expect(jsonData.status).to.eql("cancelled");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.jsonnew file mode 100644index 0000000000..f64e37a125--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.json@@ -0,0 +1,43 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "cancellation_reason": "requested_by_customer"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/cancel",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "cancel"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "A Payment could can be cancelled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_customer_action"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c591a4e66b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..0f5db3f39d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..5ecc1148ec--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "cancelled" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'cancelled'",+ function () {+ pm.expect(jsonData.status).to.eql("cancelled");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/.meta.jsonnew file mode 100644index 0000000000..02cae2ee1d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9885d5f5e7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..3426ad7a08--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..d413cc7264--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/event.test.js@@ -0,0 +1,59 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..46c1ca2212--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/request.jsonnew file mode 100644index 0000000000..5e306df7a5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 6540,+ "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/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..25b292d191--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/.meta.jsonnew file mode 100644index 0000000000..a2bda58fed--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/.meta.json@@ -0,0 +1,11 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Refunds - Create",+ "Refunds - Retrieve",+ "Refunds - Create-copy",+ "Refunds - Retrieve-copy",+ "Payments - Retrieve-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9885d5f5e7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/request.jsonnew file mode 100644index 0000000000..3426ad7a08--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..1539b3d9da--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,63 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "refunds"+pm.test("[POST]::/payments - Content check if 'refunds' exists", function () {+ pm.expect(typeof jsonData.refunds !== "undefined").to.be.true;+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..4c3c3535ef--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/event.test.jsnew file mode 100644index 0000000000..6fed269516--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "1000" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '1000'",+ function () {+ pm.expect(jsonData.amount).to.eql(1000);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/request.jsonnew file mode 100644index 0000000000..b56057fad5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/request.json@@ -0,0 +1,42 @@+{+ "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": 1000,+ "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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..a472f116d4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// 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);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/request.jsonnew file mode 100644index 0000000000..d18aaf8bef--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..4d96411763--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '1000'",+ function () {+ pm.expect(jsonData.amount).to.eql(1000);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..cce8d2b8ea--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// 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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario6a-Partial refund/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/.meta.jsonnew file mode 100644index 0000000000..9341a6edf0--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/.meta.json@@ -0,0 +1,10 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "List payment methods for a Customer",+ "Payments - Retrieve",+ "Recurring Payments - Create",+ "Payments - Retrieve-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..f844efad42--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/event.test.js@@ -0,0 +1,20 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:customer_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){}++if (jsonData?.customer_payment_methods[0]?.payment_token) {+ pm.collectionVariables.set("payment_token", jsonData.customer_payment_methods[0].payment_token);+ console.log("- use {{payment_token}} as collection variable for value", jsonData.customer_payment_methods[0].payment_token);+} else {+ console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..cff6d6d715--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/request.json@@ -0,0 +1,28 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "variable": [+ {+ "key": "customer_id",+ "value": "{{customer_id}}",+ "description": "//Pass the customer id"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular Customer ID"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..636ad8002f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/event.test.js@@ -0,0 +1,62 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..c564a62c80--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/request.json@@ -0,0 +1,102 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "Joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..8b198f9f6f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/event.test.js@@ -0,0 +1,87 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..5eb52f3b47--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..fe8fa706b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,75 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..86d6058849--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/event.test.js@@ -0,0 +1,86 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}+// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..e2ddde7136--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/event.test.js@@ -0,0 +1,95 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);++// Response body should have "payment_method_data"+pm.test(+ "[POST]::/payments - Content check if 'payment_method_data' exists",+ function () {+ pm.expect(typeof jsonData.payment_method_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..0ae243421f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7-Create a mandate and recurring payment/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/.meta.jsonnew file mode 100644index 0000000000..640b085784--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/.meta.json@@ -0,0 +1,9 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Recurring Payments - Create",+ "Payments - Capture",+ "Payments - Retrieve-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..44a6caa3e3--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - 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?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6540'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/request.jsonnew file mode 100644index 0000000000..8efb99d3c9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 6540,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/event.test.jsnew file mode 100644index 0000000000..1b37dc2c7d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/event.test.js@@ -0,0 +1,97 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/request.jsonnew file mode 100644index 0000000000..f0be44bec9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..fe8fa706b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,75 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..7c16f15a6e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/event.test.js@@ -0,0 +1,95 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);++// Response body should have "payment_method_data"+pm.test(+ "[POST]::/payments - Content check if 'payment_method_data' exists",+ function () {+ pm.expect(typeof jsonData.payment_method_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..3aac08f6e3--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario7a-Manual capture for recurring payments/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/.meta.jsonnew file mode 100644index 0000000000..e8b3174bc0--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/.meta.json@@ -0,0 +1,10 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Recurring Payments - Create",+ "Payments - Retrieve-copy",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..1b37dc2c7d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/event.test.js@@ -0,0 +1,97 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..f0be44bec9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..ef2a8b7e7a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/event.test.js@@ -0,0 +1,105 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);++// Response body should have "payment_method_data"+pm.test(+ "[POST]::/payments - Content check if 'payment_method_data' exists",+ function () {+ pm.expect(typeof jsonData.payment_method_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..7b12dcdde5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6570,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6570,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..46c1ca2212--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/request.jsonnew file mode 100644index 0000000000..5e306df7a5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 6540,+ "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/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..25b292d191--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/event.test.js@@ -0,0 +1,50 @@+// 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 "pending" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'pending'",+ function () {+ pm.expect(jsonData.status).to.eql("pending");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario8-Refund recurring payment/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/.meta.jsonnew file mode 100644index 0000000000..fc1db5626f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/.meta.json@@ -0,0 +1,12 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "List payment methods for a Customer",+ "Save card payments - Create",+ "Save card payments - Confirm",+ "Payments - Retrieve",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..f844efad42--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/event.test.js@@ -0,0 +1,20 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:customer_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){}++if (jsonData?.customer_payment_methods[0]?.payment_token) {+ pm.collectionVariables.set("payment_token", jsonData.customer_payment_methods[0].payment_token);+ console.log("- use {{payment_token}} as collection variable for value", jsonData.customer_payment_methods[0].payment_token);+} else {+ console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..cff6d6d715--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/request.json@@ -0,0 +1,28 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "variable": [+ {+ "key": "customer_id",+ "value": "{{customer_id}}",+ "description": "//Pass the customer id"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular Customer ID"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..636ad8002f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/event.test.js@@ -0,0 +1,62 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..fd771e557f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/request.json@@ -0,0 +1,87 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_type": "credit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "03",+ "card_exp_year": "2030",+ "card_holder_name": "joseph Doe",+ "card_cvc": "737"+ }+ },+ "setup_future_usage": "on_session",+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/event.test.jsnew file mode 100644index 0000000000..24c0c554d7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/event.test.js@@ -0,0 +1,48 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test("[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'requires_payment_method'", function() {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ })};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/request.jsonnew file mode 100644index 0000000000..750011ab17--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/request.json@@ -0,0 +1,87 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "stripesavecard_{{random_number}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..4ae08a2606--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/event.test.js@@ -0,0 +1,49 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..c71774083b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..dbc930608c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/event.test.js@@ -0,0 +1,30 @@+// 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.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/request.jsonnew file mode 100644index 0000000000..4dbca4d01f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 600,+ "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/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..bbd8e544e2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/event.test.js@@ -0,0 +1,30 @@+// 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.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/event.test.jsnew file mode 100644index 0000000000..a2afa5194f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/event.test.js@@ -0,0 +1,72 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}+++// Response body should have value "cybersource" for "connector"+if (jsonData?.connector) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'connector' matches 'cybersource'",+ function () {+ pm.expect(jsonData.connector).to.eql("cybersource");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/request.jsonnew file mode 100644index 0000000000..68ba9ce708--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/request.json@@ -0,0 +1,66 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_token": "{{payment_token}}",+ "card_cvc": "737"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/event.test.jsnew file mode 100644index 0000000000..31c6af0dfb--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/event.test.js@@ -0,0 +1,41 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("- use {{payment_id}} as collection variable for value",jsonData.payment_id);+} else {+ console.log('INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.');+};++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log("- use {{client_secret}} as collection variable for value",jsonData.client_secret);+} else {+ console.log('INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.');+};++if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/request.jsonnew file mode 100644index 0000000000..1f1ca9cbc5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/request.json@@ -0,0 +1,92 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://google.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario9-Add card flow/Save card payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/.meta.jsonnew file mode 100644index 0000000000..c4939d7ab9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/.meta.json@@ -0,0 +1,11 @@+{+ "childrenOrder": [+ "Merchant Account - Create",+ "API Key - Create",+ "Payment Connector - Create",+ "Payments - Create",+ "Payments - Retrieve",+ "Refunds - Create",+ "Refunds - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/event.test.jsnew file mode 100644index 0000000000..4e27c5a502--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/event.test.js@@ -0,0 +1,46 @@+// Validate status 2xx+pm.test("[POST]::/api_keys/:merchant_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/api_keys/:merchant_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 api_key_id as variable for jsonData.key_id+if (jsonData?.key_id) {+ pm.collectionVariables.set("api_key_id", jsonData.key_id);+ console.log(+ "- use {{api_key_id}} as collection variable for value",+ jsonData.key_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{api_key_id}}, as jsonData.key_id is undefined.",+ );+}++// pm.collectionVariables - Set api_key as variable for jsonData.api_key+if (jsonData?.api_key) {+ pm.collectionVariables.set("api_key", jsonData.api_key);+ console.log(+ "- use {{api_key}} as collection variable for value",+ jsonData.api_key,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/request.jsonnew file mode 100644index 0000000000..4e4c662849--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/request.json@@ -0,0 +1,52 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{admin_api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "raw_json_formatted": {+ "name": "API Key 1",+ "description": null,+ "expiration": "2069-09-23T01:02:03.000Z"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/api_keys/:merchant_id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "api_keys",+ ":merchant_id"+ ],+ "variable": [+ {+ "key": "merchant_id",+ "value": "{{merchant_id}}"+ }+ ]+ }+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/API Key - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/event.test.jsnew file mode 100644index 0000000000..70f5e50bbd--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/event.test.js@@ -0,0 +1,53 @@+// Validate status 2xx+pm.test("[POST]::/accounts - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/accounts - 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 merchant_id as variable for jsonData.merchant_id+if (jsonData?.merchant_id) {+ pm.collectionVariables.set("merchant_id", jsonData.merchant_id);+ console.log(+ "- use {{merchant_id}} as collection variable for value",+ jsonData.merchant_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{merchant_id}}, as jsonData.merchant_id is undefined.",+ );+}++/*+// pm.collectionVariables - Set api_key as variable for jsonData.api_key+if (jsonData?.api_key) {+ pm.collectionVariables.set("api_key", jsonData.api_key);+ console.log("- use {{api_key}} as collection variable for value",jsonData.api_key);+} else {+ console.log('INFO - Unable to assign variable {{api_key}}, as jsonData.api_key is undefined.');+};+*/++// pm.collectionVariables - Set publishable_key as variable for jsonData.publishable_key+if (jsonData?.publishable_key) {+ pm.collectionVariables.set("publishable_key", jsonData.publishable_key);+ console.log(+ "- use {{publishable_key}} as collection variable for value",+ jsonData.publishable_key,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{publishable_key}}, as jsonData.publishable_key is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/request.jsonnew file mode 100644index 0000000000..faf64d6e2a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/request.json@@ -0,0 +1,101 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{admin_api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "merchant_id": "postman_merchant_GHAction_{{$guid}}",+ "locker_id": "m0010",+ "merchant_name": "NewAge Retailer",+ "merchant_details": {+ "primary_contact_person": "John Test",+ "primary_email": "[email protected]",+ "primary_phone": "sunt laborum",+ "secondary_contact_person": "John Test2",+ "secondary_email": "[email protected]",+ "secondary_phone": "cillum do dolor id",+ "website": "www.example.com",+ "about_business": "Online Retail with a wide selection of organic products for North America",+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US"+ }+ },+ "return_url": "https://duck.com/success",+ "webhook_details": {+ "webhook_version": "1.0.1",+ "webhook_username": "ekart_retail",+ "webhook_password": "password_ekart@123",+ "payment_created_enabled": true,+ "payment_succeeded_enabled": true,+ "payment_failed_enabled": true+ },+ "sub_merchants_enabled": false,+ "metadata": {+ "city": "NY",+ "unit": "245"+ },+ "primary_business_details": [+ {+ "country": "US",+ "business": "default"+ }+ ]+ }+ },+ "url": {+ "raw": "{{baseUrl}}/accounts",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "accounts"+ ]+ },+ "description": "Create a new account for a merchant. The merchant could be a seller or retailer or client who likes to receive and send payments."+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Merchant Account - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.jsonnew file mode 100644index 0000000000..2df9d47d93--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.prerequest.js",+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/event.test.jsnew file mode 100644index 0000000000..88e92d8d84--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/event.test.js@@ -0,0 +1,39 @@+// Validate status 2xx+pm.test(+ "[POST]::/account/:account_id/connectors - Status code is 2xx",+ function () {+ pm.response.to.be.success;+ },+);++// Validate if response header has matching content-type+pm.test(+ "[POST]::/account/:account_id/connectors - 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 merchant_connector_id as variable for jsonData.merchant_connector_id+if (jsonData?.merchant_connector_id) {+ pm.collectionVariables.set(+ "merchant_connector_id",+ jsonData.merchant_connector_id,+ );+ console.log(+ "- use {{merchant_connector_id}} as collection variable for value",+ jsonData.merchant_connector_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{merchant_connector_id}}, as jsonData.merchant_connector_id is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/request.jsonnew file mode 100644index 0000000000..1823e35c37--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/request.json@@ -0,0 +1,115 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{admin_api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "connector_type": "payment_processor",+ "connector_name": "cybersource",+ "connector_account_details": {+ "auth_type": "SignatureKey",+ "api_secret": "{{connector_api_secret}}",+ "api_key": "{{connector_api_key}}",+ "key1": "{{connector_key1}}"+ },+ "test_mode": false,+ "disabled": false,+ "payment_methods_enabled": [+ {+ "payment_method": "card",+ "payment_method_types": [+ {+ "payment_method_type": "credit",+ "card_networks": [+ "AmericanExpress",+ "Discover",+ "Interac",+ "JCB",+ "Mastercard",+ "Visa",+ "DinersClub",+ "UnionPay",+ "RuPay"+ ],+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ },+ {+ "payment_method_type": "debit",+ "card_networks": [+ "AmericanExpress",+ "Discover",+ "Interac",+ "JCB",+ "Mastercard",+ "Visa",+ "DinersClub",+ "UnionPay",+ "RuPay"+ ],+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ }+ ]+ }+ ]+ }+ },+ "url": {+ "raw": "{{baseUrl}}/account/:account_id/connectors",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "account",+ ":account_id",+ "connectors"+ ],+ "variable": [+ {+ "key": "account_id",+ "value": "{{merchant_id}}",+ "description": "(Required) The unique identifier for the merchant account"+ }+ ]+ },+ "description": "Create a new Payment Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialised services like Fraud / Accounting etc."+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/event.test.jsnew file mode 100644index 0000000000..a63c5a19df--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/event.test.js@@ -0,0 +1,91 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set customer_id as variable for jsonData.customer_id+if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log(+ "- use {{customer_id}} as collection variable for value",+ jsonData.customer_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "succeeded"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have an error message+if (jsonData?.error_message) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error_message' is not 'null'",+ function () {+ pm.expect(jsonData.error_message).is.not.null;+ },+ );+}++// Response body should have "connector_transaction_id"+pm.test(+ "[POST]::/payments - Content check if 'connector_transaction_id' exists",+ function () {+ pm.expect(typeof jsonData.connector_transaction_id !== "undefined").to.be+ .true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/request.jsonnew file mode 100644index 0000000000..1f7ee65267--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/request.json@@ -0,0 +1,94 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 12345,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 12345,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+1",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_type": "credit",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "joseph",+ "last_name": "Doe"+ },+ "phone": {+ "number": "8056594427",+ "country_code": "+91"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..d0a02af743--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/event.test.js@@ -0,0 +1,61 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..c71774083b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..f88e7ae9d6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/event.test.js@@ -0,0 +1,40 @@+// 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 "profile_id" and not "null"+pm.test(+ "[POST]::/payments - Content check if 'profile_id' exists and is not 'null'",+ function () {+ pm.expect(typeof jsonData.profile_id !== "undefined").to.be.true;+ pm.expect(jsonData.profile_id).is.not.null;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/request.jsonnew file mode 100644index 0000000000..4dbca4d01f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 600,+ "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/cybersource/Flow Testcases/QuickStart/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..bbd8e544e2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/event.test.js@@ -0,0 +1,30 @@+// 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.",+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/request.json@@ -0,0 +1,27 @@+{+ "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/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/QuickStart/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/.meta.jsonnew file mode 100644index 0000000000..b7ca4ab1f5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/.meta.json@@ -0,0 +1,20 @@+{+ "childrenOrder": [+ "Scenario1-Create payment with Invalid card details",+ "Scenario2-Confirming the payment without PMD",+ "Scenario3-Capture greater amount",+ "Scenario4-Capture the succeeded payment",+ "Scenario5-Void the success_slash_failure payment",+ "Scenario7-Refund exceeds amount",+ "Scenario8-Refund for unsuccessful payment",+ "Scenario9-Create a recurring payment with greater mandate amount",+ "Scenario10-Manual multiple capture",+ "Scenario11-Failure card",+ "Scenario12-Refund exceeds amount captured",+ "Scenario13-Revoke for revoked mandates",+ "Scenario14-Recurring payment for revoked mandates",+ "Scenario15-Setup_future_usage is off_session for normal payments",+ "Scenario16-Setup_future_usage is on_session for mandates payments -confirm false",+ "Scenario17-Setup_future_usage is null for normal payments"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/.meta.jsonnew file mode 100644index 0000000000..6604e8a748--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create(Invalid card number)",+ "Payments - Create(Invalid Exp month)",+ "Payments - Create(Invalid Exp Year)",+ "Payments - Create(invalid CVV)"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/event.test.jsnew file mode 100644index 0000000000..c4b29d78d2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/event.test.js@@ -0,0 +1,73 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "next_action.redirect_to_url"+pm.test("[POST]::/payments - Content check if 'error' exists", function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+});++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}++// Response body should have value "connector error" for "error message"+if (jsonData?.error?.message) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.message' matches 'Invalid Expiry Year'",+ function () {+ pm.expect(jsonData.error.message).to.eql("Invalid Expiry Year");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.jsonnew file mode 100644index 0000000000..bba838e5e1--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "2022",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.jsnew file mode 100644index 0000000000..ee90c62b81--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.test.js@@ -0,0 +1,63 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "next_action.redirect_to_url"+pm.test("[POST]::/payments - Content check if 'error' exists", function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+});++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.jsonnew file mode 100644index 0000000000..7da436d9d1--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "01",+ "card_exp_year": "2023",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.jsnew file mode 100644index 0000000000..a58e23401e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.js@@ -0,0 +1,63 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test("[POST]::/payments - Content check if 'error' exists", function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+});++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'connector_error'",+ function () {+ pm.expect(jsonData.error.type).to.eql("connector_error");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.jsonnew file mode 100644index 0000000000..183f96f5a5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "123456",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "united states",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "united states",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.jsnew file mode 100644index 0000000000..81ba4d3442--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.js@@ -0,0 +1,63 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test("[POST]::/payments - Content check if 'error' exists", function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+});++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'connector'",+ function () {+ pm.expect(jsonData.error.type).to.eql("connector");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.jsonnew file mode 100644index 0000000000..a68012553e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "123456",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "12345"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/.meta.jsonnew file mode 100644index 0000000000..abc159198a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/.meta.json@@ -0,0 +1,5 @@+{+ "childrenOrder": [+ "Payments - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..90bb7fec7d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 5xx+pm.test("[POST]::/payments - Status code is 5xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}+// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );++}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..075eee8ca4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual_multiple",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario10- Manual multiple capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/.meta.jsonnew file mode 100644index 0000000000..60051ecca2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/event.test.jsnew file mode 100644index 0000000000..1d169aade2--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/event.test.js@@ -0,0 +1,71 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "failed" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'failed'",+ function () {+ pm.expect(jsonData.status).to.eql("failed");+ },+ );+}++// Check if error code exists+pm.test("[POST]::/payments - Content check if error code exists", function () {+ pm.expect(jsonData.error_code).to.not.equal(null);;+});++// Check if error message exists+pm.test("[POST]::/payments - Content check if error message exists", function () {+ pm.expect(jsonData.error_message).to.not.equal(null);;+});+++diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/request.jsonnew file mode 100644index 0000000000..643920b4c6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/request.json@@ -0,0 +1,98 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "business_country": "US",+ "business_label": "default",+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "setup_future_usage": "on_session",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "412345678912345678914",+ "card_exp_month": "01",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari",+ "last_name": "sundari"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari",+ "last_name": "sundari"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..0ef16bb956--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/event.test.js@@ -0,0 +1,69 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "failed" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'failed'",+ function () {+ pm.expect(jsonData.status).to.eql("failed");+ },+ );+}++// Check if error code exists+pm.test("[POST]::/payments - Content check if error code exists", function () {+ pm.expect(jsonData.error_code).to.not.equal(null);;+});++// Check if error message exists+pm.test("[POST]::/payments - Content check if error message exists", function () {+ pm.expect(jsonData.error_message).to.not.equal(null);;+});+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario11-Failure card/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/.meta.jsonnew file mode 100644index 0000000000..daea208e6a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Capture",+ "Payments - Retrieve",+ "Refunds - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..ad7ec549dd--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/event.test.js@@ -0,0 +1,81 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/capture - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'partially_captured'",+ function () {+ pm.expect(jsonData.status).to.eql("partially_captured");+ },+ );+}++// Response body should have value "6540" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '6540'",+ function () {+ pm.expect(jsonData.amount).to.eql(6540);+ },+ );+}++// Response body should have value "6000" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '6000'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(6000);+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/request.jsonnew file mode 100644index 0000000000..8975575ca4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 6000,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c591a4e66b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/request.jsonnew file mode 100644index 0000000000..17124cfef6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/request.json@@ -0,0 +1,88 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..550547e339--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'partially_captured'",+ function () {+ pm.expect(jsonData.status).to.eql("partially_captured");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..07721f97af--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 4xx+pm.test("[POST]::/refunds - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// 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 "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "invalid_request" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}++// Response body should have value "The refund amount exceeds the amount captured" for "error message"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.message' matches 'The refund amount exceeds the amount captured'",+ function () {+ pm.expect(jsonData.error.message).to.eql("The refund amount exceeds the amount captured");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/request.jsonnew file mode 100644index 0000000000..5e306df7a5--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 6540,+ "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/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario12-Refund exceeds amount captured/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/.meta.jsonnew file mode 100644index 0000000000..3e828fa121--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Revoke - Mandates",+ "Revoke - Mandates-copy"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9d11debb6e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/event.test.js@@ -0,0 +1,98 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/request.jsonnew file mode 100644index 0000000000..f0be44bec9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/event.test.jsnew file mode 100644index 0000000000..41174ecd8a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/event.test.js@@ -0,0 +1,31 @@+// Validate status 4xx+pm.test("[GET]::/payments/:id - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}++pm.test("[POST]::/payments - Content check if value for 'error.reason' matches 'Mandate has already been revoked", function () {+ pm.expect(jsonData.error.reason).to.eql("Mandate has already been revoked");+});diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/request.jsonnew file mode 100644index 0000000000..3c7b05bbde--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/request.json@@ -0,0 +1,27 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/revoke/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ "revoke",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}"+ }+ ]+ },+ "description": "To revoke a mandate registered against a customer"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/event.test.jsnew file mode 100644index 0000000000..74c5e000fc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/event.test.js@@ -0,0 +1,37 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "revoked" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'revoked'",+ function () {+ pm.expect(jsonData.status).to.eql("revoked");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/request.jsonnew file mode 100644index 0000000000..3c7b05bbde--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/request.json@@ -0,0 +1,27 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/revoke/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ "revoke",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}"+ }+ ]+ },+ "description": "To revoke a mandate registered against a customer"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario13- Revoke for revoked mandates/Revoke - Mandates/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/.meta.jsonnew file mode 100644index 0000000000..4f0d340c47--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Revoke - Mandates",+ "Recurring Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/event.test.jsnew file mode 100644index 0000000000..1b37dc2c7d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/event.test.js@@ -0,0 +1,97 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/request.jsonnew file mode 100644index 0000000000..f0be44bec9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..fe8fa706b9--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/event.test.js@@ -0,0 +1,75 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..c121237d81--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/event.test.js@@ -0,0 +1,50 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}++pm.test("[POST]::/payments - Content check if value for 'error.message' matches 'Mandate is not active", function () {+ pm.expect(jsonData.error.message).to.eql("mandate is not active");+});+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..0ae243421f--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/event.test.jsnew file mode 100644index 0000000000..74c5e000fc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/event.test.js@@ -0,0 +1,37 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/: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) {}+++// Response body should have value "revoked" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'revoked'",+ function () {+ pm.expect(jsonData.status).to.eql("revoked");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/request.jsonnew file mode 100644index 0000000000..3c7b05bbde--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/request.json@@ -0,0 +1,27 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/mandates/revoke/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "mandates",+ "revoke",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{mandate_id}}"+ }+ ]+ },+ "description": "To revoke a mandate registered against a customer"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario14- Recurring payment for revoked mandates/Revoke - Mandates/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/.meta.jsonnew file mode 100644index 0000000000..abc159198a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/.meta.json@@ -0,0 +1,5 @@+{+ "childrenOrder": [+ "Payments - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/event.test.jsnew file mode 100644index 0000000000..fa63b7d5d7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/event.test.js@@ -0,0 +1,63 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}++pm.test("[POST]::/payments - Content check if value for 'error.message' matches 'setup_future_usage` cannot be `off_session` for normal payments", function () {+ pm.expect(jsonData.error.message).to.eql("`setup_future_usage` cannot be `off_session` for normal payments");+});+diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/request.jsonnew file mode 100644index 0000000000..5f55f09c9b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/request.json@@ -0,0 +1,80 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "customer_{{$randomAlphaNumeric}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "setup_future_usage": "off_session",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario15- Setup_future_usage is off_session for normal payments/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/.meta.jsonnew file mode 100644index 0000000000..90b19864ee--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..e669e9b3f4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/event.test.js@@ -0,0 +1,69 @@+// Validate status 4xx+pm.test("[POST]::/payments/:id/confirm - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}++pm.test("[POST]::/payments - Content check if value for 'error.message' matches 'setup_future_usage` cannot be `off_session` for normal payments", function () {+ pm.expect(jsonData.error.message).to.eql("`setup_future_usage` must be `off_session` for mandates");+});+++diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..c9da92e0ca--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/request.json@@ -0,0 +1,102 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "Joseph Doe",+ "card_cvc": "123"+ }+ },+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "setup_future_usage": "on_session",+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9439fd2a58--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/event.test.js@@ -0,0 +1,71 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set customer_id as variable for jsonData.customer_id+if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log(+ "- use {{customer_id}} as collection variable for value",+ jsonData.customer_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/request.jsonnew file mode 100644index 0000000000..a929371080--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "customer{{$randomAlphaNumeric}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario16- Setup_future_usage is on_session for mandates payments -confirm false/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/.meta.jsonnew file mode 100644index 0000000000..a61911ba71--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm",+ "List payment methods for a Customer"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..5362f6707b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/event.test.js@@ -0,0 +1,18 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:customer_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.test("[GET]::/payment_methods/:customer_id Check if card not stored in the locker ", function () {+ var jsonData = pm.response.json();+ pm.expect(jsonData.customer_payment_methods).to.be.an('array').that.is.empty;+});\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..cff6d6d715--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/request.json@@ -0,0 +1,28 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "variable": [+ {+ "key": "customer_id",+ "value": "{{customer_id}}",+ "description": "//Pass the customer id"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular Customer ID"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..e81508b4d4--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/event.test.js@@ -0,0 +1,62 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..09824d8431--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/request.json@@ -0,0 +1,86 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "Joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": null,+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "125.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9439fd2a58--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/event.test.js@@ -0,0 +1,71 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set customer_id as variable for jsonData.customer_id+if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log(+ "- use {{customer_id}} as collection variable for value",+ jsonData.customer_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/request.jsonnew file mode 100644index 0000000000..a929371080--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/request.json@@ -0,0 +1,79 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "customer{{$randomAlphaNumeric}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario17- Setup_future_usage is null for normal payments/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.jsonnew file mode 100644index 0000000000..90b19864ee--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..4ac527d834--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.json@@ -0,0 +1,6 @@+{+ "eventOrder": [+ "event.test.js",+ "event.prerequest.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..839f2246ae--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.test.js@@ -0,0 +1,69 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/confirm - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..16f6e13983--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.json@@ -0,0 +1,63 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.jsnew file mode 100644index 0000000000..905cc47900--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.jsonnew file mode 100644index 0000000000..6a2576612d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.json@@ -0,0 +1,77 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/.meta.jsonnew file mode 100644index 0000000000..e4ef30e39e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Capture",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..5148496731--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/event.test.js@@ -0,0 +1,69 @@+// Validate status 4xx+pm.test("[POST]::/payments/:id/capture - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.jsonnew file mode 100644index 0000000000..766a8330d6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 7000,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c591a4e66b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.jsonnew file mode 100644index 0000000000..0f5db3f39d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..5bbd978e9c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/.meta.jsonnew file mode 100644index 0000000000..cafd3a6808--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Capture"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..5148496731--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/event.test.js@@ -0,0 +1,69 @@+// Validate status 4xx+pm.test("[POST]::/payments/:id/capture - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/capture - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/capture - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.jsonnew file mode 100644index 0000000000..766a8330d6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.json@@ -0,0 +1,45 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount_to_capture": 7000,+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/capture",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To capture the funds for an uncaptured payment"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9885d5f5e7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..3426ad7a08--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/.meta.jsonnew file mode 100644index 0000000000..afba25ab6d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Cancel"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/event.test.jsnew file mode 100644index 0000000000..0f869a6dfb--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/event.test.js@@ -0,0 +1,69 @@+// Validate status 4xx+pm.test("[POST]::/payments/:id/cancel - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test(+ "[POST]::/payments/:id/cancel - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/cancel - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.jsonnew file mode 100644index 0000000000..f64e37a125--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.json@@ -0,0 +1,43 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "cancellation_reason": "requested_by_customer"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/cancel",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "cancel"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "A Payment could can be cancelled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_customer_action"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9885d5f5e7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..3426ad7a08--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/.meta.jsonnew file mode 100644index 0000000000..46f7f55695--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Refunds - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.jsnew file mode 100644index 0000000000..9885d5f5e7--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.jsonnew file mode 100644index 0000000000..3426ad7a08--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..4c3c3535ef--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..776dbd7071--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/event.test.js@@ -0,0 +1,48 @@+// Validate status 4xx+pm.test("[POST]::/refunds - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// 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 "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "connector error" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.jsonnew file mode 100644index 0000000000..326319e8fd--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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": 7000,+ "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/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.jsonnew file mode 100644index 0000000000..46f7f55695--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Refunds - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..1961240af6--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_confirmation" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'requires_confirmation'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_confirmation");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..9fa2aeb5cc--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.json@@ -0,0 +1,89 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..ca287ae17d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/event.test.js@@ -0,0 +1,58 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "requires_confirmation" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'requires_confirmation'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_confirmation");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..d3c4451760--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/event.test.js@@ -0,0 +1,48 @@+// Validate status 4xx+pm.test("[POST]::/refunds - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// 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 "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "invalid_request" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.jsonnew file mode 100644index 0000000000..d18aaf8bef--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.json@@ -0,0 +1,42 @@+{+ "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/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/.meta.jsonnew file mode 100644index 0000000000..2ac05e6e39--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Recurring Payments - Create"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/event.test.jsnew file mode 100644index 0000000000..1b37dc2c7d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/event.test.js@@ -0,0 +1,97 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/request.jsonnew file mode 100644index 0000000000..4bf62f4f29--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/request.json@@ -0,0 +1,106 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "{{customer_id}}",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "setup_future_usage": "off_session",+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "127.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "single_use": {+ "amount": 7000,+ "currency": "USD"+ }+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "likhin",+ "last_name": "bopanna"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "count_tickets": 1,+ "transaction_number": "5590045"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..58d2dfe66d--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/event.test.js@@ -0,0 +1,74 @@+// Validate status 2xx+pm.test("[GET]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[GET]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have value "Succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have "mandate_id"+pm.test(+ "[POST]::/payments - Content check if 'mandate_id' exists",+ function () {+ pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;+ },+);++// Response body should have "mandate_data"+pm.test(+ "[POST]::/payments - Content check if 'mandate_data' exists",+ function () {+ pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;+ },+);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/payments/:id?force_sync=true",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "query": [+ {+ "key": "force_sync",+ "value": "true"+ }+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}",+ "description": "(Required) unique payment id"+ }+ ]+ },+ "description": "To retrieve the properties of a Payment. 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/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..e862404c2b--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/event.test.js@@ -0,0 +1,79 @@+// Validate status 4xx+pm.test("[POST]::/payments - Status code is 4xx", function () {+ pm.response.to.be.error;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}++// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id+if (jsonData?.mandate_id) {+ pm.collectionVariables.set("mandate_id", jsonData.mandate_id);+ console.log(+ "- use {{mandate_id}} as collection variable for value",+ jsonData.mandate_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",+ );+}++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}++// Response body should have "error"+pm.test(+ "[POST]::/payments/:id/confirm - Content check if 'error' exists",+ function () {+ pm.expect(typeof jsonData.error !== "undefined").to.be.true;+ },+);++// Response body should have value "invalid_request" for "error type"+if (jsonData?.error?.type) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'",+ function () {+ pm.expect(jsonData.error.type).to.eql("invalid_request");+ },+ );+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..12646e4c9c--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.json@@ -0,0 +1,75 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 8040,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "StripeCustomer",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "mandate_id": "{{mandate_id}}",+ "off_session": true,+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments"+ ]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/Health check/.meta.json b/postman/collection-dir/cybersource/Health check/.meta.jsonnew file mode 100644index 0000000000..66ee7e50ca--- /dev/null+++ b/postman/collection-dir/cybersource/Health check/.meta.json@@ -0,0 +1,5 @@+{+ "childrenOrder": [+ "New Request"+ ]+}diff --git a/postman/collection-dir/cybersource/Health check/New Request/.event.meta.json b/postman/collection-dir/cybersource/Health check/New Request/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/cybersource/Health check/New Request/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/cybersource/Health check/New Request/event.test.js b/postman/collection-dir/cybersource/Health check/New Request/event.test.jsnew file mode 100644index 0000000000..b490b8be09--- /dev/null+++ b/postman/collection-dir/cybersource/Health check/New Request/event.test.js@@ -0,0 +1,4 @@+// Validate status 2xx+pm.test("[POST]::/accounts - Status code is 2xx", function () {+ pm.response.to.be.success;+});diff --git a/postman/collection-dir/cybersource/Health check/New Request/request.json b/postman/collection-dir/cybersource/Health check/New Request/request.jsonnew file mode 100644index 0000000000..4cc8d4b1a9--- /dev/null+++ b/postman/collection-dir/cybersource/Health check/New Request/request.json@@ -0,0 +1,20 @@+{+ "method": "GET",+ "header": [+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/health",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "health"+ ]+ }+}diff --git a/postman/collection-dir/cybersource/Health check/New Request/response.json b/postman/collection-dir/cybersource/Health check/New Request/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/cybersource/Health check/New Request/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/cybersource/event.prerequest.js b/postman/collection-dir/cybersource/event.prerequest.jsnew file mode 100644index 0000000000..baeff37e44--- /dev/null+++ b/postman/collection-dir/cybersource/event.prerequest.js@@ -0,0 +1,4 @@+pm.request.headers.add({+ key: 'x-feature',+ value: 'router_custom'+});diff --git a/postman/collection-dir/cybersource/event.test.js b/postman/collection-dir/cybersource/event.test.jsnew file mode 100644index 0000000000..fb52caec30--- /dev/null+++ b/postman/collection-dir/cybersource/event.test.js@@ -0,0 +1,13 @@+// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log("[LOG]::payment_id - " + jsonData.payment_id);+}++console.log("[LOG]::x-request-id - " + pm.response.headers.get("x-request-id"));