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
test(postman): update postman collection files
github-actions2593dd17c30d
diff --git a/postman/collection-json/stripe.postman_collection.json b/postman/collection-json/stripe.postman_collection.jsonindex 136133666c..0f29c9ff1b 100644--- a/postman/collection-json/stripe.postman_collection.json+++ b/postman/collection-json/stripe.postman_collection.json@@ -2864,6 +2864,104 @@},"response": []},+ {+ "name": "List Customer",+ "event": [+ {+ "listen": "test",+ "script": {+ "exec": [+ "// Validate status 2xx",+ "pm.test(\"[POST]::/customers - Status code is 2xx\", function () {",+ " pm.response.to.be.success;",+ "});",+ "",+ "// Validate if response header has matching content-type",+ "pm.test(\"[POST]::/customers - 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]::/customers - 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) {}",+ "",+ "",+ "// Response body should have a minimum length of \"1\" for \"customer_id\"",+ "if (jsonData?.customer_id) {",+ " pm.test(",+ " \"[POST]::/customers - Content check if value of 'customer_id' has a minimum length of '2'\",",+ " function () {",+ " pm.expect(jsonData.customer_id.length).is.at.least(2);",+ " },",+ " );",+ "}",+ "",+ "",+ "// Define the regular expression pattern to match customer_id",+ "var customerIdPattern = /^[a-zA-Z0-9_]+$/;",+ "",+ "// Define an array to store the validation results",+ "var validationResults = [];",+ "",+ "// Iterate through the JSON array",+ "jsonData.forEach(function(item, index) {",+ " if (item.hasOwnProperty(\"customer_id\")) {",+ " if (customerIdPattern.test(item.customer_id)) {",+ " validationResults.push(\"customer_id \" + item.customer_id + \" is valid.\");",+ " } else {",+ " validationResults.push(\"customer_id \" + item.customer_id + \" is not valid.\");",+ " }",+ " } else {",+ " validationResults.push(\"customer_id is missing for item at index \" + index);",+ " }",+ "});",+ "",+ "// Check if any customer_id is not valid and fail the test if necessary",+ "if (validationResults.some(result => !result.includes(\"is valid\"))) {",+ " pm.test(\"Customer IDs validation failed: \" + validationResults.join(\", \"), function() {",+ " pm.expect(false).to.be.true;",+ " });",+ "} else {",+ " pm.test(\"All customer IDs are valid: \" + validationResults.join(\", \"), function() {",+ " pm.expect(true).to.be.true;",+ " });",+ "}",+ ""+ ],+ "type": "text/javascript"+ }+ }+ ],+ "request": {+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "url": {+ "raw": "{{baseUrl}}/customers/list",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "customers",+ "list"+ ]+ }+ },+ "response": []+ },{"name": "Retrieve Customer","event": [