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): refactor NMI postman collection (#3805)
Pa1NarK8775bb54644a
diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.ymlindex 8cbbed8187..57ca74fbc4 100644--- a/.github/workflows/postman-collection-runner.yml+++ b/.github/workflows/postman-collection-runner.yml@@ -61,7 +61,7 @@ jobs:CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}CONNECTOR_CREDS_S3_BUCKET_URI: ${{ secrets.CONNECTOR_CREDS_S3_BUCKET_URI}}DESTINATION_FILE_NAME: "connector_auth.toml.gpg"- S3_SOURCE_FILE_NAME: "cf05a6ab-525e-4888-98b3-3b4a443b87c0.toml.gpg"+ S3_SOURCE_FILE_NAME: "95aa1243-4caa-4539-a65a-723aa5cbe3d7.toml.gpg"shell: bashrun: |mkdir -p ${HOME}/target/secrets ${HOME}/target/testdiff --git a/postman/collection-dir/nmi/.event.meta.json b/postman/collection-dir/nmi/.event.meta.jsonindex eb871bbcb9..2df9d47d93 100644--- a/postman/collection-dir/nmi/.event.meta.json+++ b/postman/collection-dir/nmi/.event.meta.json@@ -1,3 +1,6 @@{- "eventOrder": ["event.prerequest.js", "event.test.js"]+ "eventOrder": [+ "event.prerequest.js",+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/.info.json b/postman/collection-dir/nmi/.info.jsonindex 397f580f19..4cf3962e0a 100644--- a/postman/collection-dir/nmi/.info.json+++ b/postman/collection-dir/nmi/.info.json@@ -1,6 +1,6 @@{"info": {- "_postman_id": "4de44872-bdff-465f-a958-52988651e0b8",+ "_postman_id": "83b726fc-8895-4afd-8f07-a9545e209490","name": "nmi","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",diff --git a/postman/collection-dir/nmi/.meta.json b/postman/collection-dir/nmi/.meta.jsonindex d513035ce2..91b6a65c5b 100644--- a/postman/collection-dir/nmi/.meta.json+++ b/postman/collection-dir/nmi/.meta.json@@ -1,3 +1,6 @@{- "childrenOrder": ["Health check", "Flow Testcases"]+ "childrenOrder": [+ "Health check",+ "Flow Testcases"+ ]}diff --git a/postman/collection-dir/nmi/.variable.json b/postman/collection-dir/nmi/.variable.jsonindex 84482b418f..c094f8062b 100644--- a/postman/collection-dir/nmi/.variable.json+++ b/postman/collection-dir/nmi/.variable.json@@ -53,6 +53,11 @@"value": "","type": "string"},+ {+ "key": "connector_key1",+ "value": "",+ "type": "string"+ },{"key": "publishable_key","value": "",diff --git a/postman/collection-dir/nmi/Flow Testcases/.meta.json b/postman/collection-dir/nmi/Flow Testcases/.meta.jsonindex 023989e1e4..1bbce84368 100644--- a/postman/collection-dir/nmi/Flow Testcases/.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/.meta.json@@ -1,3 +1,7 @@{- "childrenOrder": ["QuickStart", "Happy Cases", "Variation Cases"]+ "childrenOrder": [+ "QuickStart",+ "Happy Cases",+ "Variation Cases"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/.meta.jsonindex 66b69703d4..035bfeded8 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/.meta.json@@ -2,10 +2,21 @@"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","Scenario5-Void the payment",- "Scenario9-Refund full payment",- "Scenario10-Partial refund"+ "Scenario6-Refund full payment",+ "Scenario7-Partial refund",+ "Scenario8-Create a failure card payment with confirm true",+ "Scenario9-Update amount with automatic capture",+ "Scenario9a-Update amount with manual capture",+ "Scenario10-Create a mandate and recurring payment Copy",+ "Scenario11-Refund recurring payment Copy",+ "Scenario12-Add card flow",+ "Scenario13-Don't Pass CVV for save card flow and verify success payment",+ "Scenario14-Save card payment with manual capture",+ "Scenario15-Create payment without customer_id and with billing address and shipping address"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.jsonindex 69b505c6d8..60051ecca2 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/.meta.json@@ -1,3 +1,6 @@{- "childrenOrder": ["Payments - Create", "Payments - Retrieve"]+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.jsindex 705069ab0d..2b4d94d8d5 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.jsonindex 29118575b2..e3e065d5a6 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/.meta.jsonnew file mode 100644index 0000000000..28591b4543--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Recurring Payments - Create",+ "Payments - Retrieve-copy"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..e72bc84b8c--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// 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/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..8e9afa774b--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/request.json@@ -0,0 +1,101 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "10",+ "card_exp_year": "69",+ "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": 100000,+ "currency": "USD"+ }+ }+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-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/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..db584da226--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/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 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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/request.jsonsimilarity index 86%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve-copy/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-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/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..db584da226--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/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 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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/request.jsonsimilarity index 86%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Retrieve/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..ce36d5ed1d--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// 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/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..44e6fbdf66--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/request.json@@ -0,0 +1,64 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Recurring Payments - Create/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/request.jsondeleted file mode 100644index 29118575b2..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/request.json+++ /dev/null@@ -1,28 +0,0 @@-{- "method": "POST",- "header": [- {- "key": "Content-Type",- "value": "application/json"- },- {- "key": "Accept",- "value": "application/json"- }- ],- "body": {- "mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}",- "options": {- "raw": {- "language": "json"- }- }- },- "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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/.meta.jsonnew file mode 100644index 0000000000..e8b3174bc0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-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/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..ffa879c31d--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/event.test.js@@ -0,0 +1,90 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// 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/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..9c932aa537--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring 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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "10",+ "card_exp_year": "69",+ "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": 100000,+ "currency": "USD"+ }+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..db584da226--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/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 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/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/request.jsonsimilarity index 86%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve-copy/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..db584da226--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/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 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/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/request.jsonsimilarity index 86%rename from postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Retrieve/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..500c24ec90--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/event.test.js@@ -0,0 +1,98 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// 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/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..44e6fbdf66--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/request.json@@ -0,0 +1,64 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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,+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Recurring Payments - Create/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/event.test.jsnew file mode 100644index 0000000000..85957914aa--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/event.test.js@@ -0,0 +1,53 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount).to.eql(amount);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/request.jsonnew file mode 100644index 0000000000..c4e7e01345--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-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": "{{amount}}",+ "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/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Create/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/event.test.jsnew file mode 100644index 0000000000..1c5c9e16c6--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/event.test.js@@ -0,0 +1,53 @@+// Get the value of 'amount' from the environment+const refund_amount = pm.environment.get("amount");++// Validate status 2xx+pm.test("[GET]::/refunds/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/refunds/:id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set refund_id as variable for jsonData.payment_id+if (jsonData?.refund_id) {+ pm.collectionVariables.set("refund_id", jsonData.refund_id);+ console.log(+ "- use {{refund_id}} as collection variable for value",+ jsonData.refund_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{refund_id}}, as jsonData.refund_id is undefined.",+ );+}++// Response body should have value "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value for "refund_amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'refund_amount' matches '{{refund_amount}}'",+ function () {+ pm.expect(jsonData.amount).to.eql(refund_amount);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/request.jsonsimilarity index 84%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/request.jsonindex c4271891fb..6c28619e85 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/refunds/:id",- "host": ["{{baseUrl}}"],- "path": ["refunds", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds",+ ":id"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Refunds - Retrieve/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/.meta.jsonnew file mode 100644index 0000000000..5f65896adb--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/.meta.json@@ -0,0 +1,9 @@+{+ "childrenOrder": [+ "Payments - Create",+ "List payment methods for a Customer",+ "Save card payments - Create",+ "Save card payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-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/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..f844efad42--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-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/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..40843aac2a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/request.json@@ -0,0 +1,70 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "query": [+ {+ "key": "accepted_country",+ "value": "co",+ "disabled": true+ },+ {+ "key": "accepted_country",+ "value": "pa",+ "disabled": true+ },+ {+ "key": "accepted_currency",+ "value": "voluptate ea",+ "disabled": true+ },+ {+ "key": "accepted_currency",+ "value": "exercitation",+ "disabled": true+ },+ {+ "key": "minimum_amount",+ "value": "100",+ "disabled": true+ },+ {+ "key": "maximum_amount",+ "value": "10000000",+ "disabled": true+ },+ {+ "key": "recurring_payment_enabled",+ "value": "true",+ "disabled": true+ },+ {+ "key": "installment_payment_enabled",+ "value": "true",+ "disabled": true+ }+ ],+ "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/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/List payment methods for a Customer/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/event.test.jsnew file mode 100644index 0000000000..47b0e8cb53--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/event.test.js@@ -0,0 +1,56 @@+// 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.');+};++// Response body should have value "processing" for "status"+if (jsonData?.status) {+ pm.test("[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'", function() {+ pm.expect(jsonData.status).to.eql("processing");+ })};\ No newline at end of filediff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/request.jsonnew file mode 100644index 0000000000..056b9269a2--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/request.json@@ -0,0 +1,96 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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://duck.com",+ "setup_future_usage": "on_session",+ "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"+ }+ },+ "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/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/response.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Create/response.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..d0a02af743--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/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/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..c71774083b--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-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/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/event.test.jsnew file mode 100644index 0000000000..eedc017da1--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/event.test.js@@ -0,0 +1,85 @@+// 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}+++// Response body should have value "nmi" for "connector"+if (jsonData?.connector) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'connector' matches 'nmi'",+ function () {+ pm.expect(jsonData.connector).to.eql("nmi");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/request.jsonnew file mode 100644index 0000000000..68ba9ce708--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-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/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/event.test.jsnew file mode 100644index 0000000000..5c88ff0253--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/event.test.js@@ -0,0 +1,50 @@+// 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.');+};\ No newline at end of filediff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/request.jsonnew file mode 100644index 0000000000..63c9d317a8--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/request.json@@ -0,0 +1,84 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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": "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/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario12-Add card flow/Save card payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/.meta.jsonnew file mode 100644index 0000000000..1ebea8f5e8--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success 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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/event.test.jsnew file mode 100644index 0000000000..f844efad42--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success 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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..40843aac2a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/request.json@@ -0,0 +1,70 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "query": [+ {+ "key": "accepted_country",+ "value": "co",+ "disabled": true+ },+ {+ "key": "accepted_country",+ "value": "pa",+ "disabled": true+ },+ {+ "key": "accepted_currency",+ "value": "voluptate ea",+ "disabled": true+ },+ {+ "key": "accepted_currency",+ "value": "exercitation",+ "disabled": true+ },+ {+ "key": "minimum_amount",+ "value": "100",+ "disabled": true+ },+ {+ "key": "maximum_amount",+ "value": "10000000",+ "disabled": true+ },+ {+ "key": "recurring_payment_enabled",+ "value": "true",+ "disabled": true+ },+ {+ "key": "installment_payment_enabled",+ "value": "true",+ "disabled": true+ }+ ],+ "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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/event.test.jsnew file mode 100644index 0000000000..cd3e43df90--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/event.test.js@@ -0,0 +1,60 @@+// 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..1d85fee735--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/request.json@@ -0,0 +1,96 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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://duck.com",+ "setup_future_usage": "on_session",+ "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": "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": {+ "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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/event.test.jsnew file mode 100644index 0000000000..5a75f1e555--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/event.test.js@@ -0,0 +1,80 @@+// 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 "nmi" for "connector"+if (jsonData?.connector) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'connector' matches 'nmi'",+ function () {+ pm.expect(jsonData.connector).to.eql("nmi");+ },+ );+}++// Response body should have value "processing" for "status"+if (jsonData?.status) {+ pm.test("[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'", function() {+ pm.expect(jsonData.status).to.eql("processing");+ })};\ No newline at end of filediff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/request.jsonnew file mode 100644index 0000000000..a1442beda7--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success 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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/event.test.jsnew file mode 100644index 0000000000..f829462929--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/event.test.js@@ -0,0 +1,60 @@+// 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");+ },+ );+}++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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/request.jsonnew file mode 100644index 0000000000..ee04c12c18--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success 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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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": "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/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario13-Don't Pass CVV for save card flow and verify success payment/Save card payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/.meta.jsonnew file mode 100644index 0000000000..776f366105--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/.meta.json@@ -0,0 +1,14 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "List payment methods for a Customer",+ "Save card payments - Create",+ "Save card payments - Confirm",+ "Payments - Retrieve-copy",+ "Payments - Capture",+ "Payments - Retrieve-copy-2",+ "Refunds - Create Copy",+ "Refunds - Retrieve Copy"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/request.jsonnew file mode 100644index 0000000000..40843aac2a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/request.json@@ -0,0 +1,70 @@+{+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/:customer_id/payment_methods",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ ":customer_id",+ "payment_methods"+ ],+ "query": [+ {+ "key": "accepted_country",+ "value": "co",+ "disabled": true+ },+ {+ "key": "accepted_country",+ "value": "pa",+ "disabled": true+ },+ {+ "key": "accepted_currency",+ "value": "voluptate ea",+ "disabled": true+ },+ {+ "key": "accepted_currency",+ "value": "exercitation",+ "disabled": true+ },+ {+ "key": "minimum_amount",+ "value": "100",+ "disabled": true+ },+ {+ "key": "maximum_amount",+ "value": "10000000",+ "disabled": true+ },+ {+ "key": "recurring_payment_enabled",+ "value": "true",+ "disabled": true+ },+ {+ "key": "installment_payment_enabled",+ "value": "true",+ "disabled": true+ }+ ],+ "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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/List payment methods for a Customer/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..a4032ae92c--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/event.test.js@@ -0,0 +1,102 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("nmi");+});++// Response body should have value "amount" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(amount);+ },+ );+}++// Response body should have value "0" for "amount_capturable"+if (jsonData?.amount_capturable) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'",+ function () {+ pm.expect(jsonData.amount_capturable).to.eql(amount);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/request.jsonnew file mode 100644index 0000000000..ebe908ee38--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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": "{{amount}}",+ "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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..74bc3f6ab7--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/event.test.js@@ -0,0 +1,60 @@+// 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.');+};++// Response body should have value "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..73457bf319--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/request.json@@ -0,0 +1,96 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "customer_id": "nmisavecard_{{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://duck.com",+ "setup_future_usage": "on_session",+ "payment_method": "card",+ "payment_method_type": "credit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "03",+ "card_exp_year": "69",+ "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": {+ "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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/event.test.jsnew file mode 100644index 0000000000..855327fbed--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/event.test.js@@ -0,0 +1,109 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("nmi");+});++// Response body should have value "amount" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount).to.eql(amount);+ },+ );+}++// Response body should have value "amount" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(amount);+ },+ );+}++// Response body should have value "6540" for "amount_capturable"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",+ function () {+ pm.expect(jsonData.amount_capturable).to.eql(0);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy-2/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/event.test.jsnew file mode 100644index 0000000000..1062c69a98--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/event.test.js@@ -0,0 +1,109 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 "requires_capture" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id - Content check if value for 'status' matches 'requires_capture'",+ function () {+ pm.expect(jsonData.status).to.eql("requires_capture");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("nmi");+});++// Response body should have value "amount" for "amount"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount).to.eql(amount);+ },+ );+}++// Response body should have value "amount" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(amount);+ },+ );+}++// Response body should have value "amount" for "amount_capturable"+if (jsonData?.amount) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - {{amount}}'",+ function () {+ pm.expect(jsonData.amount_capturable).to.eql(amount);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..90668968b6--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/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");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("nmi");+});++// 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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.test.jsnew file mode 100644index 0000000000..31d7e10354--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/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 "10" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '10'",+ function () {+ pm.expect(jsonData.amount).to.eql(10);+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("nmi");+});diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/request.jsonsimilarity index 90%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/request.jsonindex be18332897..e913162c9b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/request.json@@ -31,8 +31,12 @@},"url": {"raw": "{{baseUrl}}/refunds",- "host": ["{{baseUrl}}"],- "path": ["refunds"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds"+ ]},"description": "To create a refund against an already processed payment"}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.test.jsnew file mode 100644index 0000000000..36330c874e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/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 "succeeded" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'status' matches 'succeeded'",+ function () {+ pm.expect(jsonData.status).to.eql("succeeded");+ },+ );+}++// Response body should have value "10" for "amount"+if (jsonData?.status) {+ pm.test(+ "[POST]::/refunds - Content check if value for 'amount' matches '10'",+ function () {+ pm.expect(jsonData.amount).to.eql(10);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/request.jsonsimilarity index 84%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/request.jsonindex c4271891fb..6c28619e85 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/refunds/:id",- "host": ["{{baseUrl}}"],- "path": ["refunds", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds",+ ":id"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/event.test.jsnew file mode 100644index 0000000000..eedc017da1--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/event.test.js@@ -0,0 +1,85 @@+// 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}+++// Response body should have value "nmi" for "connector"+if (jsonData?.connector) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'connector' matches 'nmi'",+ function () {+ pm.expect(jsonData.connector).to.eql("nmi");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/request.jsonnew file mode 100644index 0000000000..5d78ead7de--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/event.test.jsnew file mode 100644index 0000000000..a2255fff07--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/event.test.js@@ -0,0 +1,63 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// 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");+ },+ );+}++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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/request.jsonnew file mode 100644index 0000000000..4f8c00e4a6--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/request.json@@ -0,0 +1,84 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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": "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/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Save card payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/.meta.jsonnew file mode 100644index 0000000000..60051ecca2--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c308a7467f--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// 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/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/request.jsonnew file mode 100644index 0000000000..ffda1aef2d--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "business_country": "US",+ "business_label": "default",+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "customer_id": "bernard123",+ "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",+ "setup_future_usage": "on_session",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "01",+ "card_exp_year": "69",+ "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": "John",+ "last_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John",+ "last_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ }+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..20626ecd2a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/event.test.js@@ -0,0 +1,80 @@+// 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 "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/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/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/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario15-Create payment without customer_id and with billing address and shipping address/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.jsonindex ec45ef29bb..16f6e13983 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/request.json@@ -43,8 +43,14 @@},"url": {"raw": "{{baseUrl}}/payments/:id/confirm",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "confirm"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.jsindex 009e204591..55dc35b912 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.jsonindex dc12ea2659..dec63a14e2 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": false,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my last payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "customer_id": "StripeCustomer",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+65",+ "description": "Its my last payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/.meta.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..37ee4bfbce--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..90744e3d83--- /dev/null+++ b/postman/collection-dir/nmi/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": "4111111111111111",+ "card_exp_month": "10",+ "card_exp_year": "69",+ "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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/response.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/event.test.jsnew file mode 100644index 0000000000..0444324000--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/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 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");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/request.jsonnew file mode 100644index 0000000000..1b36996813--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/request.json@@ -0,0 +1,74 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Create/response.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/event.test.jssimilarity index 89%rename from postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/event.test.jsindex fdb8a946f3..aced67dbfb 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/event.test.js@@ -60,12 +60,12 @@ if (jsonData?.client_secret) {);}-// Response body should have value "requires_confirmation" for "status"+// Response body should have value "succeeded" for "status"if (jsonData?.status) {pm.test(- "[POST]::/payments/:id - Content check if value for 'status' matches 'requires_confirmation'",+ "[POST]::/payments:id - Content check if value for 'status' matches 'succeeded'",function () {- pm.expect(jsonData.status).to.eql("requires_confirmation");+ pm.expect(jsonData.status).to.eql("succeeded");},);}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/request.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Retrieve/response.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/.meta.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..e20f12f343--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/event.test.js@@ -0,0 +1,74 @@+// 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 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..664ca14ea3--- /dev/null+++ b/postman/collection-dir/nmi/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": "4111111111111111",+ "card_exp_month": "10",+ "card_exp_year": "69",+ "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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/response.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/event.test.jsnew file mode 100644index 0000000000..0444324000--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/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 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");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/request.jsonnew file mode 100644index 0000000000..1b36996813--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/request.json@@ -0,0 +1,74 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Create/response.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..3a12047135--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/event.test.js@@ -0,0 +1,71 @@+// 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");+ },+ );+}\ No newline at end of filediff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/request.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Retrieve/response.json b/postman/collection-dir/nmi/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/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.jsonindex ab7b144f94..8e01b3111b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json@@ -44,7 +44,7 @@"card": {"card_number": "4111111111111111","card_exp_month": "10",- "card_exp_year": "25",+ "card_exp_year": "69","card_holder_name": "joseph Doe","card_cvc": "123"}@@ -53,8 +53,14 @@},"url": {"raw": "{{baseUrl}}/payments/:id/confirm",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "confirm"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.jsindex e920cac3df..0444324000 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.jsonindex fc4e0cc59c..1b36996813 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Create/request.json@@ -12,11 +12,57 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": false,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.jsonindex a980e3cb94..ebe908ee38 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/request.json@@ -12,17 +12,27 @@],"body": {"mode": "raw",- "raw": "{\n \"amount_to_capture\": {{amount}},\n \"statement_descriptor_name\": \"Joseph\",\n \"statement_descriptor_suffix\": \"JS\"\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount_to_capture": "{{amount}}",+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"}},"url": {"raw": "{{baseUrl}}/payments/:id/capture",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "capture"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.jsindex 20b92d507d..e13c466cc2 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/event.test.js@@ -1,4 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));pm.environment.set("amount", pm.response.json().amount);// Validate status 2xxdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.jsonindex 613a57f234..f014342638 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"manual\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve-copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.jsonindex 374b615fde..3443f265bd 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Cancel/request.json@@ -23,8 +23,14 @@},"url": {"raw": "{{baseUrl}}/payments/:id/cancel",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "cancel"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "cancel"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.jsindex 2dcd786634..cee98b477b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.jsonindex f2ba0f5cb4..f014342638 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"manual\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve-copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/.meta.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/.meta.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/.meta.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.test.jssimilarity index 97%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.test.jsindex 59f4e123df..f25578db7f 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/event.test.js@@ -1,4 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));// Set the environment variable 'amount' with the value from the responsepm.environment.set("amount", pm.response.json().amount);diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/request.jsonnew file mode 100644index 0000000000..e3e065d5a6--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/request.json@@ -0,0 +1,84 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.test.jssimilarity index 96%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.test.jsindex 88f7e54302..521521c26c 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/event.test.js@@ -42,7 +42,7 @@ if (jsonData?.status) {);}-// Response body should have value "6540" for "amount"+// Response body should have value for "amount"if (jsonData?.status) {pm.test("[POST]::/refunds - Content check if value for 'amount' matches '{{amount}}'",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/request.jsonnew file mode 100644index 0000000000..c4e7e01345--- /dev/null+++ b/postman/collection-dir/nmi/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": "{{amount}}",+ "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/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/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/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/request.jsonsimilarity index 84%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/request.jsonindex c4271891fb..6c28619e85 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/refunds/:id",- "host": ["{{baseUrl}}"],- "path": ["refunds", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds",+ ":id"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario6-Refund full payment/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/.meta.jsonsimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/.meta.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/.meta.jsondiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/event.test.jssimilarity index 94%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/event.test.jsindex 705069ab0d..16c37817f0 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;@@ -62,7 +60,7 @@ if (jsonData?.client_secret) {);}-// Response body should have value "succeeded" for "status"+// Response body should have value "processing" for "status"if (jsonData?.status) {pm.test("[POST]::/payments - Content check if value for 'status' matches 'processing'",diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/request.jsonnew file mode 100644index 0000000000..e3e065d5a6--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/request.json@@ -0,0 +1,84 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Payments - Retrieve-copy/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-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/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-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/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create-copy/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/request.jsonsimilarity index 52%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/request.jsonindex 73a74425cb..e913162c9b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/request.json@@ -12,17 +12,31 @@],"body": {"mode": "raw",- "raw": "{\n \"payment_id\": \"{{payment_id}}\",\n \"amount\": {{amount}},\n \"reason\": \"Customer returned product\",\n \"refund_type\": \"instant\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "payment_id": "{{payment_id}}",+ "amount": 10,+ "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"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds"+ ]},"description": "To create a refund against an already processed payment"}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/request.jsonsimilarity index 90%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/request.jsonrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/request.jsonindex 142ab27d01..49682c9522 100644--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/request.json@@ -31,8 +31,12 @@},"url": {"raw": "{{baseUrl}}/refunds",- "host": ["{{baseUrl}}"],- "path": ["refunds"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds"+ ]},"description": "To create a refund against an already processed payment"}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve-copy/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-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/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario10-Partial refund/Refunds - Retrieve/event.test.jsrename to postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/event.test.jsdiff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/request.jsonnew file mode 100644index 0000000000..6c28619e85--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-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/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario7-Partial refund/Refunds - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/.meta.jsonnew file mode 100644index 0000000000..60051ecca2--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/.meta.json@@ -0,0 +1,6 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/event.test.jsnew file mode 100644index 0000000000..c96bd89125--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/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 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 'failed'",+ function () {+ pm.expect(jsonData.status).to.eql("failed");+ },+ );+}++// 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;+ },+);++// Response body should have value "200" for "error_code"+if (jsonData?.error_code) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error_code' matches '200'",+ function () {+ pm.expect(jsonData.error_code).to.eql("200");+ },+ );+}++// Response body should have value "message - DECLINE"+if (jsonData?.error_message) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'DECLINE'",+ function () {+ pm.expect(jsonData.error_message).to.eql("DECLINE");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/request.jsonnew file mode 100644index 0000000000..97cce7936c--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/request.json@@ -0,0 +1,90 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "business_country": "US",+ "business_label": "default",+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "customer_id": "bernard123",+ "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",+ "setup_future_usage": "on_session",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "01",+ "card_exp_year": "26",+ "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": "John",+ "last_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John",+ "last_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..a802c34baf--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/event.test.js@@ -0,0 +1,100 @@+// 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 'failed'",+ function () {+ pm.expect(jsonData.status).to.eql("failed");+ },+ );+}++// 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;+ },+);++// Response body should have value "200" for "error_code"+if (jsonData?.error_code) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error_code' matches '200'",+ function () {+ pm.expect(jsonData.error_code).to.eql("200");+ },+ );+}++// Response body should have value "message - DECLINE"+if (jsonData?.error_message) {+ pm.test(+ "[POST]::/payments/:id/confirm - Content check if value for 'error_message' matches 'DECLINE'",+ function () {+ pm.expect(jsonData.error_message).to.eql("DECLINE");+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card 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/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario8-Create a failure card payment with confirm true/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/request.jsondeleted file mode 100644index 29118575b2..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/request.json+++ /dev/null@@ -1,28 +0,0 @@-{- "method": "POST",- "header": [- {- "key": "Content-Type",- "value": "application/json"- },- {- "key": "Accept",- "value": "application/json"- }- ],- "body": {- "mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}",- "options": {- "raw": {- "language": "json"- }- }- },- "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/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Retrieve/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Create/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Refunds - Retrieve/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/.meta.jsonnew file mode 100644index 0000000000..3038a1f4dd--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Update",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..d03ed16ff5--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/event.test.js@@ -0,0 +1,39 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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");+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++//// Response body should have value "processing" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'processing'", function() {+ pm.expect(jsonData.status).to.eql("processing");+})};+++// Check if the 'amount' is equal to "amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{amount}}' ", function () {+ pm.expect(jsonData.amount).to.eql(amount);+});++//// Response body should have value "amount_received" for "amount"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '{{amount}}'", function() {+ pm.expect(jsonData.amount_received).to.eql(amount);+})};diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..6c99817eb0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/request.json@@ -0,0 +1,98 @@+{+ "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"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ },+ {+ "key": "publishable_key",+ "value": "",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "03",+ "card_exp_year": "69",+ "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": "128.0.0.1"+ }+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..27965bb9c0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(1000, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..8796ea4d50--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/event.test.js@@ -0,0 +1,59 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// 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.');+};++// 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.');+};+// 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/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..1b36996813--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/request.json@@ -0,0 +1,74 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..dc5f41bba3--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/event.test.js@@ -0,0 +1,64 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 - Content check if value for 'status' matches 'succeeded'", function() {+ pm.expect(jsonData.status).to.eql("succeeded");+})};+++// Check if the 'amount' is equal to "amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{amount}}' ", function () {+ pm.expect(jsonData.amount).to.eql(amount);+});++//// Response body should have value "amount_received" for "amount"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '{{amount}}'", function() {+ pm.expect(jsonData.amount_received).to.eql(amount);+})};diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic 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/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/event.prerequest.jsnew file mode 100644index 0000000000..b3ccf3285f--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/event.prerequest.js@@ -0,0 +1,2 @@+// Get the value of 'amount' from the environment+pm.environment.set("another_random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/event.test.jsnew file mode 100644index 0000000000..b2838911ae--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/event.test.js@@ -0,0 +1,31 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// Get the value of 'amount' from the environment+const updated_amount = pm.environment.get("amount");++// Validate status 2xx+pm.test("[POST]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/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("[POST]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Parse the JSON response+var jsonData = pm.response.json();++// Check if the 'amount' is equal to "updated_amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{updated_amount}}'", function () {+ pm.expect(jsonData.amount).to.eql(updated_amount);+});++diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/request.jsonnew file mode 100644index 0000000000..2d931088d1--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/request.json@@ -0,0 +1,41 @@+{+ "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": "{{another_random_number}}"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created "+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9-Update amount with automatic capture/Payments - Update/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/.meta.jsonnew file mode 100644index 0000000000..7166c4f5e0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/.meta.json@@ -0,0 +1,10 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Update",+ "Payments - Confirm",+ "Payments - Retrieve",+ "Payments - Capture",+ "Payments - Retrieve Copy"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/event.test.jsnew file mode 100644index 0000000000..a4032ae92c--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/event.test.js@@ -0,0 +1,102 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]:://payments/:id/capture - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// Validate the connector+pm.test("[POST]::/payments - connector", function () {+ pm.expect(jsonData.connector).to.eql("nmi");+});++// Response body should have value "amount" for "amount_received"+if (jsonData?.amount_received) {+ pm.test(+ "[POST]::/payments:id/capture - Content check if value for 'amount_received' matches '{{amount}}'",+ function () {+ pm.expect(jsonData.amount_received).to.eql(amount);+ },+ );+}++// Response body should have value "0" for "amount_capturable"+if (jsonData?.amount_capturable) {+ pm.test(+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'",+ function () {+ pm.expect(jsonData.amount_capturable).to.eql(amount);+ },+ );+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/request.jsonnew file mode 100644index 0000000000..ebe908ee38--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount 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": "{{amount}}",+ "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/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Capture/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..d03ed16ff5--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/event.test.js@@ -0,0 +1,39 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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");+});++// Set response object as internal variable+let jsonData = {};+try {jsonData = pm.response.json();}catch(e){}++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++//// Response body should have value "processing" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'processing'", function() {+ pm.expect(jsonData.status).to.eql("processing");+})};+++// Check if the 'amount' is equal to "amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{amount}}' ", function () {+ pm.expect(jsonData.amount).to.eql(amount);+});++//// Response body should have value "amount_received" for "amount"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '{{amount}}'", function() {+ pm.expect(jsonData.amount_received).to.eql(amount);+})};diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..6c99817eb0--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/request.json@@ -0,0 +1,98 @@+{+ "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"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ },+ {+ "key": "publishable_key",+ "value": "",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "03",+ "card_exp_year": "69",+ "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": "128.0.0.1"+ }+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/event.test.jsnew file mode 100644index 0000000000..8796ea4d50--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/event.test.js@@ -0,0 +1,59 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// 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.');+};++// 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.');+};+// 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/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/request.jsonnew file mode 100644index 0000000000..41bbee72d2--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/request.json@@ -0,0 +1,74 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "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/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/event.test.jsnew file mode 100644index 0000000000..dc5f41bba3--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/event.test.js@@ -0,0 +1,64 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 - Content check if value for 'status' matches 'succeeded'", function() {+ pm.expect(jsonData.status).to.eql("succeeded");+})};+++// Check if the 'amount' is equal to "amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{amount}}' ", function () {+ pm.expect(jsonData.amount).to.eql(amount);+});++//// Response body should have value "amount_received" for "amount"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '{{amount}}'", function() {+ pm.expect(jsonData.amount_received).to.eql(amount);+})};diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount 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/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve Copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..117ed345b2--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/event.test.js@@ -0,0 +1,64 @@+// Get the value of 'amount' from the environment+const amount = pm.environment.get("amount");++// 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 "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");+})};+++// Check if the 'amount' is equal to "amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{amount}}' ", function () {+ pm.expect(jsonData.amount).to.eql(amount);+});++//// Response body should have value "amount_received" for "amount"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '{{amount}}'", function() {+ pm.expect(jsonData.amount_received).to.eql(amount);+})};diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount 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/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/event.prerequest.jsnew file mode 100644index 0000000000..b3ccf3285f--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/event.prerequest.js@@ -0,0 +1,2 @@+// Get the value of 'amount' from the environment+pm.environment.set("another_random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/event.test.jsnew file mode 100644index 0000000000..b2838911ae--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/event.test.js@@ -0,0 +1,31 @@+// Set the environment variable 'amount' with the value from the response+pm.environment.set("amount", pm.response.json().amount);++// Get the value of 'amount' from the environment+const updated_amount = pm.environment.get("amount");++// Validate status 2xx+pm.test("[POST]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/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("[POST]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Parse the JSON response+var jsonData = pm.response.json();++// Check if the 'amount' is equal to "updated_amount"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '{{updated_amount}}'", function () {+ pm.expect(jsonData.amount).to.eql(updated_amount);+});++diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/request.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/request.jsonnew file mode 100644index 0000000000..2d931088d1--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/request.json@@ -0,0 +1,41 @@+{+ "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": "{{another_random_number}}"+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created "+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/response.json b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Happy Cases/Scenario9a-Update amount with manual capture/Payments - Update/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/request.jsonindex 6ceefe5d24..4e4c662849 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/API Key - Create/request.json@@ -35,8 +35,13 @@},"url": {"raw": "{{baseUrl}}/api_keys/:merchant_id",- "host": ["{{baseUrl}}"],- "path": ["api_keys", ":merchant_id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "api_keys",+ ":merchant_id"+ ],"variable": [{"key": "merchant_id",diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.jsonindex 220b1a6723..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js", "event.prerequest.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/request.jsonindex dcbf46ee53..ffeea3410a 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Merchant Account - Create/request.json@@ -84,8 +84,12 @@},"url": {"raw": "{{baseUrl}}/accounts",- "host": ["{{baseUrl}}"],- "path": ["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/nmi/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.jsonindex 220b1a6723..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js", "event.prerequest.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/request.jsonindex 60dabc163c..5d3b5cbcf7 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/request.json@@ -41,8 +41,9 @@"connector_type": "fiz_operations","connector_name": "nmi","connector_account_details": {- "auth_type": "HeaderKey",- "api_key": "{{connector_api_key}}"+ "auth_type": "BodyKey",+ "api_key": "{{connector_api_key}}",+ "key1": "{{connector_key1}}"},"test_mode": false,"disabled": false,@@ -104,8 +105,14 @@},"url": {"raw": "{{baseUrl}}/account/:account_id/connectors",- "host": ["{{baseUrl}}"],- "path": ["account", ":account_id", "connectors"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "account",+ ":account_id",+ "connectors"+ ],"variable": [{"key": "account_id",diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/.event.meta.jsonindex 220b1a6723..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js", "event.prerequest.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/request.jsonindex 176c927bd6..0b984b0e52 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+1\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "customer_id": "StripeCustomer",+ "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_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/request.jsonindex edbb22e7db..203cc8ad8d 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/request.jsonindex 73a74425cb..c4e7e01345 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Create/request.json@@ -12,17 +12,31 @@],"body": {"mode": "raw",- "raw": "{\n \"payment_id\": \"{{payment_id}}\",\n \"amount\": {{amount}},\n \"reason\": \"Customer returned product\",\n \"refund_type\": \"instant\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "payment_id": "{{payment_id}}",+ "amount": "{{amount}}",+ "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"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds"+ ]},"description": "To create a refund against an already processed payment"}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/request.jsonindex 31f783a8e1..06b44cf7fd 100644--- a/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/QuickStart/Refunds - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/refunds/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["refunds", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/.meta.jsonindex 16593a3b07..7e3336a19b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/.meta.json@@ -6,6 +6,7 @@"Scenario4-Capture the succeeded payment","Scenario5-Void the success_slash_failure payment","Scenario7-Refund exceeds amount",- "Scenario8-Refund for unsuccessful payment"+ "Scenario8-Refund for unsuccessful payment",+ "Scenario9-Create a recurring payment with greater mandate amount Copy"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.jsonindex e7185ed818..c67b84f891 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4242424242424242\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"2022\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.jsonindex 8e023984aa..7b4282f3f6 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.json@@ -51,7 +51,7 @@"state": "California","zip": "94122","country": "US",- "first_name": "PiX"+ "first_name": "John"}},"shipping": {@@ -63,7 +63,7 @@"state": "California","zip": "94122","country": "US",- "first_name": "PiX"+ "first_name": "John"}},"statement_descriptor_name": "joseph",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.jsindex 11294b20d0..52680771c3 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 4xxpm.test("[POST]::/payments - Status code is 4xx", function () {pm.response.to.be.error;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.jsonindex 6740273f39..51f7969bc9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid card number)/request.json@@ -12,17 +12,75 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"123456\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "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": "US"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US"+ }+ },+ "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"]+ "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/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.jsindex e5da2bc495..3976f7f496 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 4xxpm.test("[POST]::/payments - Status code is 4xx", function () {pm.response.to.be.error;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.jsonindex 58376c99d7..07a9e0fc0b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(invalid CVV)/request.json@@ -12,11 +12,71 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"123456\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"12345\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","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": "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",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.jsonindex f2bee31ef6..90b19864ee 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/.meta.json@@ -1,3 +1,6 @@{- "childrenOrder": ["Payments - Create", "Payments - Confirm"]+ "childrenOrder": [+ "Payments - Create",+ "Payments - Confirm"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.prerequest.js b/postman/collection-dir/nmi/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/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.jsonindex ec45ef29bb..16f6e13983 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/request.json@@ -43,8 +43,14 @@},"url": {"raw": "{{baseUrl}}/payments/:id/confirm",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "confirm"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.jsindex e920cac3df..0444324000 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.jsonindex fc4e0cc59c..1b36996813 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Create/request.json@@ -12,11 +12,57 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": false,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.jsonindex 305ee93aae..290d254c5c 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Capture/request.json@@ -12,17 +12,27 @@],"body": {"mode": "raw",- "raw": "{\n \"amount_to_capture\": {{capture_amount}},\n \"statement_descriptor_name\": \"Joseph\",\n \"statement_descriptor_suffix\": \"JS\"\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount_to_capture": "{{capture_amount}}",+ "statement_descriptor_name": "Joseph",+ "statement_descriptor_suffix": "JS"}},"url": {"raw": "{{baseUrl}}/payments/:id/capture",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "capture"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.jsindex 2dcd786634..cee98b477b 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.jsonindex f2ba0f5cb4..f014342638 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"manual\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "manual",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve-copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.jsonindex 6c934a9132..766a8330d6 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Capture/request.json@@ -25,8 +25,14 @@},"url": {"raw": "{{baseUrl}}/payments/:id/capture",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "capture"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "capture"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.jsindex 705069ab0d..2b4d94d8d5 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.jsonindex 9215a6a326..e3e065d5a6 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve-copy/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.jsonindex 374b615fde..3443f265bd 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.json@@ -23,8 +23,14 @@},"url": {"raw": "{{baseUrl}}/payments/:id/cancel",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id", "cancel"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "cancel"+ ],"variable": [{"key": "id",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.jsindex 705069ab0d..2b4d94d8d5 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.jsonindex 9215a6a326..e3e065d5a6 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.jsindex 7002c42221..f25578db7f 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Set the environment variable 'amount' with the value from the responsepm.environment.set("amount", pm.response.json().amount);diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.jsonindex 9215a6a326..e3e065d5a6 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": true,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.jsonindex dbeb9b40aa..71c7cadc80 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Refunds - Create/request.json@@ -12,17 +12,31 @@],"body": {"mode": "raw",- "raw": "{\n \"payment_id\": \"{{payment_id}}\",\n \"amount\": {{refund_amount}},\n \"reason\": \"Customer returned product\",\n \"refund_type\": \"instant\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "payment_id": "{{payment_id}}",+ "amount": "{{refund_amount}}",+ "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"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds"+ ]},"description": "To create a refund against an already processed payment"}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.jsonindex 55c343ecde..46f7f55695 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/.meta.json@@ -2,7 +2,6 @@"childrenOrder": ["Payments - Create","Payments - Retrieve",- "Payments - Retrieve-copy","Refunds - Create"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.jsindex 009e204591..55dc35b912 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.js+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/event.test.js@@ -1,5 +1,3 @@-pm.environment.set("random_number", _.random(100, 100000));-// Validate status 2xxpm.test("[POST]::/payments - Status code is 2xx", function () {pm.response.to.be.success;diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.jsonindex 7a8ee243bf..e276d5e183 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.json@@ -12,11 +12,67 @@],"body": {"mode": "raw",- "raw": "{\n \"amount\": {{random_number}},\n \"currency\": \"USD\",\n \"confirm\": false,\n \"capture_method\": \"automatic\",\n \"capture_on\": \"2022-09-10T10:11:12Z\",\n \"amount_to_capture\": {{random_number}},\n \"customer_id\": \"StripeCustomer\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"phone\": \"999999999\",\n \"phone_country_code\": \"+65\",\n \"description\": \"Its my first payment request\",\n \"authentication_type\": \"no_three_ds\",\n \"return_url\": \"https://duck.com\",\n \"payment_method\": \"card\",\n \"payment_method_data\": {\n \"card\": {\n \"card_number\": \"4111111111111111\",\n \"card_exp_month\": \"10\",\n \"card_exp_year\": \"25\",\n \"card_holder_name\": \"joseph Doe\",\n \"card_cvc\": \"123\"\n }\n },\n \"billing\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"shipping\": {\n \"address\": {\n \"line1\": \"1467\",\n \"line2\": \"Harrison Street\",\n \"line3\": \"Harrison Street\",\n \"city\": \"San Fransico\",\n \"state\": \"California\",\n \"zip\": \"94122\",\n \"country\": \"US\",\n \"first_name\": \"PiX\"\n }\n },\n \"statement_descriptor_name\": \"joseph\",\n \"statement_descriptor_suffix\": \"JS\",\n \"metadata\": {\n \"udf1\": \"value1\",\n \"new_customer\": \"true\",\n \"login_date\": \"2019-09-10T10:11:12Z\"\n }\n}","options": {"raw": {"language": "json"}+ },+ "raw_json_formatted": {+ "amount": "{{random_number}}",+ "currency": "USD",+ "confirm": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }}},"url": {diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/.event.meta.jsondeleted file mode 100644index 0731450e6b..0000000000--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve-copy/.event.meta.json+++ /dev/null@@ -1,3 +0,0 @@-{- "eventOrder": ["event.test.js"]-}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.jsonindex 6cd4b7d96c..b9ebc1be4a 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Retrieve/request.json@@ -8,8 +8,13 @@],"url": {"raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": ["{{baseUrl}}"],- "path": ["payments", ":id"],+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],"query": [{"key": "force_sync",diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.jsonindex 0731450e6b..eb871bbcb9 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/.event.meta.json@@ -1,3 +1,3 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": ["event.prerequest.js", "event.test.js"]}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.jsonindex 9fe125ce8e..d18aaf8bef 100644--- a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.json+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Refunds - Create/request.json@@ -31,8 +31,12 @@},"url": {"raw": "{{baseUrl}}/refunds",- "host": ["{{baseUrl}}"],- "path": ["refunds"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "refunds"+ ]},"description": "To create a refund against an already processed payment"}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/.meta.jsonnew file mode 100644index 0000000000..2ac05e6e39--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/.meta.json@@ -0,0 +1,7 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Retrieve",+ "Recurring Payments - Create"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..30d9fbf35a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/event.prerequest.js@@ -0,0 +1 @@+pm.environment.set("random_number", _.random(100, 100000));diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/event.test.jsnew file mode 100644index 0000000000..e72bc84b8c--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/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 "processing" for "status"+if (jsonData?.status) {+ pm.test(+ "[POST]::/payments - Content check if value for 'status' matches 'processing'",+ function () {+ pm.expect(jsonData.status).to.eql("processing");+ },+ );+}++// 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/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/request.jsonnew file mode 100644index 0000000000..7aeaf601cc--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/request.json@@ -0,0 +1,105 @@+{+ "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": "{{random_number}}",+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": "{{random_number}}",+ "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",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4111111111111111",+ "card_exp_month": "10",+ "card_exp_year": "69",+ "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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ }+ }+ },+ "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/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..db584da226--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/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 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/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/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/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/response.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..eb871bbcb9--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.prerequest.js", "event.test.js"]+}diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/event.prerequest.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/event.prerequest.jsnew file mode 100644index 0000000000..e69de29bb2diff --git a/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/event.test.js b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/event.test.jsnew file mode 100644index 0000000000..e862404c2b--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/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/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/request.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/request.jsonnew file mode 100644index 0000000000..dc9d8fe8cc--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring 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": 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": "John"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "John"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ }+ }+ },+ "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/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/response.json b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount Copy/Recurring Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/nmi/Health check/.meta.json b/postman/collection-dir/nmi/Health check/.meta.jsonindex 579f9fd541..66ee7e50ca 100644--- a/postman/collection-dir/nmi/Health check/.meta.json+++ b/postman/collection-dir/nmi/Health check/.meta.json@@ -1,3 +1,5 @@{- "childrenOrder": ["New Request"]+ "childrenOrder": [+ "New Request"+ ]}diff --git a/postman/collection-dir/nmi/Health check/New Request/.event.meta.json b/postman/collection-dir/nmi/Health check/New Request/.event.meta.jsonindex 0731450e6b..688c85746e 100644--- a/postman/collection-dir/nmi/Health check/New Request/.event.meta.json+++ b/postman/collection-dir/nmi/Health check/New Request/.event.meta.json@@ -1,3 +1,5 @@{- "eventOrder": ["event.test.js"]+ "eventOrder": [+ "event.test.js"+ ]}diff --git a/postman/collection-dir/nmi/Health check/New Request/request.json b/postman/collection-dir/nmi/Health check/New Request/request.jsonindex e40e939617..4cc8d4b1a9 100644--- a/postman/collection-dir/nmi/Health check/New Request/request.json+++ b/postman/collection-dir/nmi/Health check/New Request/request.json@@ -10,7 +10,11 @@],"url": {"raw": "{{baseUrl}}/health",- "host": ["{{baseUrl}}"],- "path": ["health"]+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "health"+ ]}}