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
chore(postman): update Postman collection files
github-actions94c32c8e5461
diff --git a/postman/collection-json/stripe.postman_collection.json b/postman/collection-json/stripe.postman_collection.jsonindex 2aacb00587..3ef7636f69 100644--- a/postman/collection-json/stripe.postman_collection.json+++ b/postman/collection-json/stripe.postman_collection.json@@ -1815,54 +1815,29 @@"response": []},{- "name": "Merchant Account - Delete",+ "name": "Delete API Key","event": [{"listen": "test","script": {"exec": ["// Validate status 2xx",- "pm.test(\"[DELETE]::/accounts/:id - Status code is 2xx\", function () {",- " pm.response.to.be.success;",- "});",+ "pm.test(",+ " \"[DELETE]::/api_keys/:merchant_id/:api-key - Status code is 2xx\",",+ " function () {",+ " pm.response.to.be.success;",+ " },",+ ");","","// Validate if response header has matching content-type","pm.test(",- " \"[DELETE]::/accounts/:id - Content-Type is application/json\",",+ " \"[DELETE]::/api_keys/:merchant_id/:api-key - Content-Type is application/json\","," function () {"," pm.expect(pm.response.headers.get(\"Content-Type\")).to.include("," \"application/json\","," );"," },",");",- "",- "// Response Validation",- "const schema = {",- " type: \"object\",",- " description: \"Merchant Account\",",- " required: [\"merchant_id\", \"deleted\"],",- " properties: {",- " merchant_id: {",- " type: \"string\",",- " description: \"The identifier for the MerchantAccount object.\",",- " maxLength: 255,",- " example: \"y3oqhf46pyzuxjbcn2giaqnb44\",",- " },",- " deleted: {",- " type: \"boolean\",",- " description:",- " \"Indicates the deletion status of the Merchant Account object.\",",- " example: true,",- " },",- " },",- "};",- "",- "// Validate if response matches JSON schema",- "pm.test(\"[DELETE]::/accounts/:id - Schema is valid\", function () {",- " pm.response.to.have.jsonSchema(schema, {",- " unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"],",- " });",- "});",""],"type": "text/javascript"@@ -1882,66 +1857,93 @@"key": "key","value": "api-key","type": "string"- },- {- "key": "in",- "value": "header",- "type": "string"}]},"method": "DELETE","header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },{"key": "Accept","value": "application/json"}],"url": {- "raw": "{{baseUrl}}/accounts/:id",+ "raw": "{{baseUrl}}/api_keys/:merchant_id/:api-key","host": ["{{baseUrl}}"],"path": [- "accounts",- ":id"+ "api_keys",+ ":merchant_id",+ ":api-key"],"variable": [{- "key": "id",- "value": "{{merchant_id}}",- "description": "(Required) The unique identifier for the merchant account"+ "key": "merchant_id",+ "value": "{{merchant_id}}"+ },+ {+ "key": "api-key",+ "value": "{{api_key_id}}"}]- },- "description": "Delete a Merchant Account"+ }},"response": []},{- "name": "Delete API Key",+ "name": "Merchant Account - Delete","event": [{"listen": "test","script": {"exec": ["// Validate status 2xx",- "pm.test(",- " \"[DELETE]::/api_keys/:merchant_id/:api-key - Status code is 2xx\",",- " function () {",- " pm.response.to.be.success;",- " },",- ");",+ "pm.test(\"[DELETE]::/accounts/:id - Status code is 2xx\", function () {",+ " pm.response.to.be.success;",+ "});","","// Validate if response header has matching content-type","pm.test(",- " \"[DELETE]::/api_keys/:merchant_id/:api-key - Content-Type is application/json\",",+ " \"[DELETE]::/accounts/:id - Content-Type is application/json\","," function () {"," pm.expect(pm.response.headers.get(\"Content-Type\")).to.include("," \"application/json\","," );"," },",");",+ "",+ "// Response Validation",+ "const schema = {",+ " type: \"object\",",+ " description: \"Merchant Account\",",+ " required: [\"merchant_id\", \"deleted\"],",+ " properties: {",+ " merchant_id: {",+ " type: \"string\",",+ " description: \"The identifier for the MerchantAccount object.\",",+ " maxLength: 255,",+ " example: \"y3oqhf46pyzuxjbcn2giaqnb44\",",+ " },",+ " deleted: {",+ " type: \"boolean\",",+ " description:",+ " \"Indicates the deletion status of the Merchant Account object.\",",+ " example: true,",+ " },",+ " },",+ "};",+ "",+ "// Validate if response matches JSON schema",+ "pm.test(\"[DELETE]::/accounts/:id - Schema is valid\", function () {",+ " pm.response.to.have.jsonSchema(schema, {",+ " unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"],",+ " });",+ "});",""],"type": "text/javascript"@@ -1961,41 +1963,39 @@"key": "key","value": "api-key","type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"}]},"method": "DELETE","header": [- {- "key": "Content-Type",- "value": "application/json"- },{"key": "Accept","value": "application/json"}],"url": {- "raw": "{{baseUrl}}/api_keys/:merchant_id/:api-key",+ "raw": "{{baseUrl}}/accounts/:id","host": ["{{baseUrl}}"],"path": [- "api_keys",- ":merchant_id",- ":api-key"+ "accounts",+ ":id"],"variable": [{- "key": "merchant_id",- "value": "{{merchant_id}}"- },- {- "key": "api-key",- "value": "{{api_key_id}}"+ "key": "id",+ "value": "{{merchant_id}}",+ "description": "(Required) The unique identifier for the merchant account"}]- }+ },+ "description": "Delete a Merchant Account"},"response": []}