· 5 years ago · May 22, 2020, 07:36 AM
1{
2 "id": "5083b177-b186-093d-c210-69615eb6dd14",
3 "name": "Ackrila API Tests",
4 "description": "",
5 "order": [
6 "e7804abb-d83a-9879-0a4b-9095ceb7caf5",
7 "88931797-d170-db2a-1f76-fd0ed31e36ad",
8 "64239cf5-813e-f6c2-3077-7fc0fbfa6067",
9 "59861071-edf6-8a9e-9549-ddfe0cee6c36",
10 "de85ad55-4ffc-e764-b4fd-32abf98b8687",
11 "cbbf932f-8fe3-1525-7b90-b76f51baeef7",
12 "82f96b95-bd4b-4e6d-992b-000f47e6d83f",
13 "73c9bdc7-37f2-8fbe-d13b-90d6410589cb",
14 "c63cfa80-c4d2-3353-89da-93a60a22ada3",
15 "10138ccf-fa4b-60d2-bf22-eaa993c9267e",
16 "11f764f1-b2f7-2c83-d73e-dd83dac10b90",
17 "81cbbf80-5253-907e-0c10-59dc90ca778e",
18 "7ea73135-745b-2b71-69b7-1429512c473a",
19 "7898eb01-1054-7722-f635-9a57c2ebd48d",
20 "eab488f7-71bf-408b-e026-633874e3089b",
21 "5efd3201-87ad-9589-f752-c22c2c98c4ba",
22 "b71863a7-1489-e341-3745-2db6e3094ae4",
23 "b24fee17-2d75-b0e2-0654-899391099c97",
24 "a09074eb-3b85-f4c7-0fa7-11b0eb3f43a3",
25 "0717e01e-469b-1d5e-8a5d-cc7933c9c1d9",
26 "97aafb00-a56e-cd97-75ff-88be36e777b6",
27 "122573d0-35ec-1721-2d3a-800b2908fc12",
28 "1829dbf9-2348-efbc-b3e6-09a4fb560d87",
29 "dcf62403-2c78-30df-1cef-46bc6c007388",
30 "70c4f30f-17d4-881a-cd7b-4aff5816e74d",
31 "5ad9399e-4bfb-0638-e430-998c338e3b0c",
32 "93db06f4-84fb-23ab-13da-34046eafbbf6",
33 "6e306c90-fe09-2db3-f44c-6461fe5c3f75",
34 "620aad99-5a64-a2dd-e0e0-99e89fb8b0b3",
35 "0b29659c-5a64-c29f-459e-317b458b3728"
36 ],
37 "folders_order": [],
38 "folders": [],
39 "owner": 0,
40 "hasRequests": true,
41 "requests": [
42 {
43 "id": "0717e01e-469b-1d5e-8a5d-cc7933c9c1d9",
44 "name": "Ackrila - Debit - Bad Request (No amount) BA",
45 "description": "",
46 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
47 "method": "POST",
48 "headers": "Accept-Language: ba",
49 "dataMode": "raw",
50 "data": [],
51 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
52 "tests": "pm.test(\"Bad request - no amount\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
53 "preRequestScript": "",
54 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
55 "responses": [],
56 "pathVariableData": [],
57 "queryParams": [],
58 "headerData": [
59 {
60 "key": "Accept-Language",
61 "value": "ba",
62 "type": "text"
63 }
64 ],
65 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
66 },
67 {
68 "id": "0b29659c-5a64-c29f-459e-317b458b3728",
69 "name": "Ackrila - Debit - SUCCESS",
70 "description": "",
71 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
72 "method": "POST",
73 "headers": "",
74 "dataMode": "raw",
75 "data": [],
76 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"1234526\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
77 "tests": "pm.test(\"Success debit\", function () {\n pm.response.to.have.status(\"OK\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"provider\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"id\"\n ]\n },\n \"player\": {\n \"type\": \"object\",\n \"properties\": {\n \"firstName\": {\n \"type\": \"string\"\n },\n \"lastName\": {\n \"type\": \"string\"\n },\n \"accountNumber\": {\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"firstName\",\n \"lastName\",\n \"accountNumber\"\n ]\n },\n \"amount\": {\n \"type\": \"integer\"\n },\n \"currency\": {\n \"type\": \"string\"\n },\n \"businessUnitId\": {\n \"type\": \"string\"\n },\n \"providerTransactionId\": {\n \"type\": \"string\"\n },\n \"createdTime\": {\n \"type\": \"integer\"\n },\n \"bonusAmount\": {\n \"type\": \"integer\"\n },\n \"transactionId\": {\n \"type\": \"string\"\n },\n \"status\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"provider\",\n \"player\",\n \"amount\",\n \"currency\",\n \"businessUnitId\",\n \"providerTransactionId\",\n \"createdTime\",\n \"bonusAmount\",\n \"transactionId\",\n \"status\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});\n\nvar jsonData = pm.response.json(); \npm.test(\"Verify STATUS\", function () { \n pm.expect(jsonData.status).is.to.equal(\"SUCCESS\"); \n});",
78 "preRequestScript": "",
79 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
80 "responses": [],
81 "pathVariableData": [],
82 "queryParams": [],
83 "headerData": [],
84 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
85 },
86 {
87 "id": "10138ccf-fa4b-60d2-bf22-eaa993c9267e",
88 "name": "Ackrila - Debit - Bad Request (Too high value) BA",
89 "description": "",
90 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
91 "method": "POST",
92 "headers": "Accept-Language: ba",
93 "dataMode": "raw",
94 "data": [],
95 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000000000000000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
96 "tests": "pm.test(\"Bad request - too high value\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
97 "preRequestScript": "",
98 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
99 "responses": [],
100 "pathVariableData": [],
101 "queryParams": [],
102 "headerData": [
103 {
104 "key": "Accept-Language",
105 "value": "ba",
106 "type": "text"
107 }
108 ],
109 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
110 },
111 {
112 "id": "11f764f1-b2f7-2c83-d73e-dd83dac10b90",
113 "name": "Ackrila - Debit - Bad Request (Too low value)",
114 "description": "",
115 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
116 "method": "POST",
117 "headers": "",
118 "dataMode": "raw",
119 "data": [],
120 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":-134,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
121 "tests": "pm.test(\"Bad request - too low value\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
122 "preRequestScript": "",
123 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
124 "responses": [],
125 "pathVariableData": [],
126 "queryParams": [],
127 "headerData": [],
128 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
129 },
130 {
131 "id": "122573d0-35ec-1721-2d3a-800b2908fc12",
132 "name": "Ackrila - Debit - Bad Request (No provider) BA",
133 "description": "",
134 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
135 "method": "POST",
136 "headers": "Accept-Language: ba",
137 "dataMode": "raw",
138 "data": [],
139 "rawModeData": "{\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
140 "tests": "pm.test(\"Bad request - no provider\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
141 "preRequestScript": "",
142 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
143 "responses": [],
144 "pathVariableData": [],
145 "queryParams": [],
146 "headerData": [
147 {
148 "key": "Accept-Language",
149 "value": "ba",
150 "type": "text"
151 }
152 ],
153 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
154 },
155 {
156 "id": "1829dbf9-2348-efbc-b3e6-09a4fb560d87",
157 "name": "Ackrila - Debit - Bad Request (No player)",
158 "description": "",
159 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
160 "method": "POST",
161 "headers": "",
162 "dataMode": "raw",
163 "data": [],
164 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
165 "tests": "pm.test(\"Bad request - no player\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
166 "preRequestScript": "",
167 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
168 "responses": [],
169 "pathVariableData": [],
170 "queryParams": [],
171 "headerData": [],
172 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
173 },
174 {
175 "id": "59861071-edf6-8a9e-9549-ddfe0cee6c36",
176 "name": "Ackrila - Debit - No Auth",
177 "description": "",
178 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
179 "method": "POST",
180 "currentHelper": "normal",
181 "helperAttributes": {},
182 "headers": "",
183 "data": [],
184 "rawModeData": "",
185 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
186 "responses": [],
187 "pathVariableData": [],
188 "queryParams": [],
189 "headerData": [],
190 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
191 },
192 {
193 "id": "5ad9399e-4bfb-0638-e430-998c338e3b0c",
194 "name": "Ackrila - Debit - Bad Request (No sourceOfFunds) BA",
195 "description": "",
196 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
197 "method": "POST",
198 "headers": "Accept-Language: ba",
199 "dataMode": "raw",
200 "data": [],
201 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\"\n}",
202 "tests": "pm.test(\"Bad request - no sourceOfFunds\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
203 "preRequestScript": "",
204 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
205 "responses": [],
206 "pathVariableData": [],
207 "queryParams": [],
208 "headerData": [
209 {
210 "key": "Accept-Language",
211 "value": "ba",
212 "type": "text"
213 }
214 ],
215 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
216 },
217 {
218 "id": "5efd3201-87ad-9589-f752-c22c2c98c4ba",
219 "name": "Ackrila - Debit - Bad Request (No providerTransactionId ) BA",
220 "description": "",
221 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
222 "method": "POST",
223 "headers": "Accept-Language: ba",
224 "dataMode": "raw",
225 "data": [],
226 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
227 "tests": "pm.test(\"Bad request - no providerTransactionId\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
228 "preRequestScript": "",
229 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
230 "responses": [],
231 "pathVariableData": [],
232 "queryParams": [],
233 "headerData": [
234 {
235 "key": "Accept-Language",
236 "value": "ba",
237 "type": "text"
238 }
239 ],
240 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
241 },
242 {
243 "id": "620aad99-5a64-a2dd-e0e0-99e89fb8b0b3",
244 "name": "Ackrila - Debit - Bad Request (No request body) BA",
245 "description": "",
246 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
247 "method": "POST",
248 "headers": "Accept-Language: ba",
249 "dataMode": "raw",
250 "data": [],
251 "rawModeData": "{\n}",
252 "tests": "pm.test(\"Bad request - no requestBody\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
253 "preRequestScript": "",
254 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
255 "responses": [],
256 "pathVariableData": [],
257 "queryParams": [],
258 "headerData": [
259 {
260 "key": "Accept-Language",
261 "value": "ba",
262 "type": "text"
263 }
264 ],
265 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
266 },
267 {
268 "id": "64239cf5-813e-f6c2-3077-7fc0fbfa6067",
269 "name": "Ackrila - Check - Success",
270 "description": "",
271 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
272 "method": "GET",
273 "headers": "",
274 "data": [],
275 "rawModeData": "",
276 "tests": "pm.test(\"Success transaction check\", function () {\n pm.response.to.have.status(\"OK\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"provider\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"id\"\n ]\n },\n \"player\": {\n \"type\": \"object\",\n \"properties\": {\n \"accountNumber\": {\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"accountNumber\"\n ]\n },\n \"amount\": {\n \"type\": \"integer\"\n },\n \"currency\": {\n \"type\": \"string\"\n },\n \"createdTime\": {\n \"type\": \"integer\"\n },\n \"bonusAmount\": {\n \"type\": \"integer\"\n },\n \"transactionId\": {\n \"type\": \"string\"\n },\n \"status\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"provider\",\n \"player\",\n \"amount\",\n \"currency\",\n \"createdTime\",\n \"bonusAmount\",\n \"transactionId\",\n \"status\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
277 "preRequestScript": "",
278 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits/123453778",
279 "responses": [],
280 "pathVariableData": [],
281 "queryParams": [],
282 "headerData": [],
283 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
284 },
285 {
286 "id": "6e306c90-fe09-2db3-f44c-6461fe5c3f75",
287 "name": "Ackrila - Debit - Bad Request (No request body) SR",
288 "description": "",
289 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
290 "method": "POST",
291 "headers": "Accept-Language: sr",
292 "dataMode": "raw",
293 "data": [],
294 "rawModeData": "{\n}",
295 "tests": "pm.test(\"Bad request - no requestBody\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
296 "preRequestScript": "",
297 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits?",
298 "responses": [],
299 "pathVariableData": [],
300 "queryParams": [
301 {
302 "key": "",
303 "value": null
304 }
305 ],
306 "headerData": [
307 {
308 "key": "Accept-Language",
309 "value": "sr",
310 "type": "text"
311 }
312 ],
313 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
314 },
315 {
316 "id": "70c4f30f-17d4-881a-cd7b-4aff5816e74d",
317 "name": "Ackrila - Debit - Bad Request (No sourceOfFunds)",
318 "description": "",
319 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
320 "method": "POST",
321 "headers": "",
322 "dataMode": "raw",
323 "data": [],
324 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\"\n}",
325 "tests": "pm.test(\"Bad request - no sourceOfFunds\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
326 "preRequestScript": "",
327 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
328 "responses": [],
329 "pathVariableData": [],
330 "queryParams": [],
331 "headerData": [],
332 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
333 },
334 {
335 "id": "73c9bdc7-37f2-8fbe-d13b-90d6410589cb",
336 "name": "Ackrila - Debit - Bad Request (Unknown account number) BA",
337 "description": "",
338 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
339 "method": "POST",
340 "headers": "Accept-Language: ba",
341 "dataMode": "raw",
342 "data": [],
343 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":314314134134134\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
344 "tests": "pm.test(\"Bad request - unknown account number\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
345 "preRequestScript": "",
346 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
347 "responses": [],
348 "pathVariableData": [],
349 "queryParams": [],
350 "headerData": [
351 {
352 "key": "Accept-Language",
353 "value": "ba",
354 "type": "text"
355 }
356 ],
357 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
358 },
359 {
360 "id": "7898eb01-1054-7722-f635-9a57c2ebd48d",
361 "name": "Ackrila - Debit - Bad Request (Unsupported currency) BA",
362 "description": "",
363 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
364 "method": "POST",
365 "headers": "Accept-Language: ba",
366 "dataMode": "raw",
367 "data": [],
368 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
369 "tests": "pm.test(\"Bad request - unsupported currency\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
370 "preRequestScript": "",
371 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
372 "responses": [],
373 "pathVariableData": [],
374 "queryParams": [],
375 "headerData": [
376 {
377 "key": "Accept-Language",
378 "value": "ba",
379 "type": "text"
380 }
381 ],
382 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
383 },
384 {
385 "id": "7ea73135-745b-2b71-69b7-1429512c473a",
386 "name": "Ackrila - Debit - Bad Request (Unsupported currency)",
387 "description": "",
388 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
389 "method": "POST",
390 "headers": "",
391 "dataMode": "raw",
392 "data": [],
393 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
394 "tests": "pm.test(\"Bad request - unsupported currency\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
395 "preRequestScript": "",
396 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
397 "responses": [],
398 "pathVariableData": [],
399 "queryParams": [],
400 "headerData": [],
401 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
402 },
403 {
404 "id": "81cbbf80-5253-907e-0c10-59dc90ca778e",
405 "name": "Ackrila - Debit - Bad Request (Too low value) BA",
406 "description": "",
407 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
408 "method": "POST",
409 "headers": "Accept-Language: ba",
410 "dataMode": "raw",
411 "data": [],
412 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":-134,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
413 "tests": "pm.test(\"Bad request - too low value\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
414 "preRequestScript": "",
415 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
416 "responses": [],
417 "pathVariableData": [],
418 "queryParams": [],
419 "headerData": [
420 {
421 "key": "Accept-Language",
422 "value": "ba",
423 "type": "text"
424 }
425 ],
426 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
427 },
428 {
429 "id": "82f96b95-bd4b-4e6d-992b-000f47e6d83f",
430 "name": "Ackrila - Debit - Bad Request (Unknown account number)",
431 "description": "",
432 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
433 "method": "POST",
434 "headers": "",
435 "dataMode": "raw",
436 "data": [],
437 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":314314134134134\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
438 "tests": "pm.test(\"Bad request - unknown account number\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
439 "preRequestScript": "",
440 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
441 "responses": [],
442 "pathVariableData": [],
443 "queryParams": [],
444 "headerData": [],
445 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
446 },
447 {
448 "id": "88931797-d170-db2a-1f76-fd0ed31e36ad",
449 "name": "Ackrila - Check - Transaction not found",
450 "description": "",
451 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
452 "method": "GET",
453 "headers": "",
454 "data": [],
455 "rawModeData": "",
456 "tests": "pm.test(\"Transaction not found\", function () {\n pm.response.to.have.status(\"OK\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
457 "preRequestScript": "",
458 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits/1234566772431",
459 "responses": [],
460 "pathVariableData": [],
461 "queryParams": [],
462 "headerData": [],
463 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
464 },
465 {
466 "id": "93db06f4-84fb-23ab-13da-34046eafbbf6",
467 "name": "Ackrila - Debit - Bad Request (No request body) EN DEFAULT",
468 "description": "",
469 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
470 "method": "POST",
471 "headers": "",
472 "dataMode": "raw",
473 "data": [],
474 "rawModeData": "{\n}",
475 "tests": "pm.test(\"Bad request - no requestBody\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
476 "preRequestScript": "",
477 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
478 "responses": [],
479 "pathVariableData": [],
480 "queryParams": [],
481 "headerData": [],
482 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
483 },
484 {
485 "id": "97aafb00-a56e-cd97-75ff-88be36e777b6",
486 "name": "Ackrila - Debit - Bad Request (No provider)",
487 "description": "",
488 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
489 "method": "POST",
490 "headers": "",
491 "dataMode": "raw",
492 "data": [],
493 "rawModeData": "{\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
494 "tests": "pm.test(\"Bad request - no provider\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
495 "preRequestScript": "",
496 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
497 "responses": [],
498 "pathVariableData": [],
499 "queryParams": [],
500 "headerData": [],
501 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
502 },
503 {
504 "id": "a09074eb-3b85-f4c7-0fa7-11b0eb3f43a3",
505 "name": "Ackrila - Debit - Bad Request (No amount)",
506 "description": "",
507 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
508 "method": "POST",
509 "headers": "",
510 "dataMode": "raw",
511 "data": [],
512 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
513 "tests": "pm.test(\"Bad request - no amount\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
514 "preRequestScript": "",
515 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
516 "responses": [],
517 "pathVariableData": [],
518 "queryParams": [],
519 "headerData": [],
520 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
521 },
522 {
523 "id": "b24fee17-2d75-b0e2-0654-899391099c97",
524 "name": "Ackrila - Debit - Bad Request (No currency) BA",
525 "description": "",
526 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
527 "method": "POST",
528 "headers": "Accept-Language: ba",
529 "dataMode": "raw",
530 "data": [],
531 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
532 "tests": "pm.test(\"Bad request - no currency\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
533 "preRequestScript": "",
534 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
535 "responses": [],
536 "pathVariableData": [],
537 "queryParams": [],
538 "headerData": [
539 {
540 "key": "Accept-Language",
541 "value": "ba",
542 "type": "text"
543 }
544 ],
545 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
546 },
547 {
548 "id": "b71863a7-1489-e341-3745-2db6e3094ae4",
549 "name": "Ackrila - Debit - Bad Request (No currency)",
550 "description": "",
551 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
552 "method": "POST",
553 "headers": "",
554 "dataMode": "raw",
555 "data": [],
556 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
557 "tests": "pm.test(\"Bad request - no currency\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
558 "preRequestScript": "",
559 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
560 "responses": [],
561 "pathVariableData": [],
562 "queryParams": [],
563 "headerData": [],
564 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
565 },
566 {
567 "id": "c63cfa80-c4d2-3353-89da-93a60a22ada3",
568 "name": "Ackrila - Debit - Bad Request (Too high value)",
569 "description": "",
570 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
571 "method": "POST",
572 "headers": "",
573 "dataMode": "raw",
574 "data": [],
575 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000000000000000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
576 "tests": "pm.test(\"Bad request - too high value\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
577 "preRequestScript": "",
578 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
579 "responses": [],
580 "pathVariableData": [],
581 "queryParams": [],
582 "headerData": [],
583 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
584 },
585 {
586 "id": "cbbf932f-8fe3-1525-7b90-b76f51baeef7",
587 "name": "Ackrila - Debit - Bad Request (Uknown PP) BA",
588 "description": "",
589 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
590 "method": "POST",
591 "headers": "Accept-Language: ba",
592 "dataMode": "raw",
593 "data": [],
594 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
595 "tests": "pm.test(\"Bad request - no pp value\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
596 "preRequestScript": "",
597 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits?",
598 "responses": [],
599 "pathVariableData": [],
600 "queryParams": [
601 {
602 "key": "",
603 "value": null
604 }
605 ],
606 "headerData": [
607 {
608 "key": "Accept-Language",
609 "value": "ba",
610 "type": "text"
611 }
612 ],
613 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
614 },
615 {
616 "id": "dcf62403-2c78-30df-1cef-46bc6c007388",
617 "name": "Ackrila - Debit - Bad Request (No player) BA",
618 "description": "",
619 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
620 "method": "POST",
621 "headers": "Accept-Language: ba",
622 "dataMode": "raw",
623 "data": [],
624 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
625 "tests": "pm.test(\"Bad request - no player\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
626 "preRequestScript": "",
627 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
628 "responses": [],
629 "pathVariableData": [],
630 "queryParams": [],
631 "headerData": [
632 {
633 "key": "Accept-Language",
634 "value": "ba",
635 "type": "text"
636 }
637 ],
638 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
639 },
640 {
641 "id": "de85ad55-4ffc-e764-b4fd-32abf98b8687",
642 "name": "Ackrila - Debit - Bad Request (Uknown PP)",
643 "description": "",
644 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
645 "method": "POST",
646 "headers": "",
647 "dataMode": "raw",
648 "data": [],
649 "rawModeData": "{\n \"provider\":{\n \"id\":2352452525252\n },\n \"player\":{\n \"accountNumber\":1327707\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"providerTransactionId\":\"123456\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
650 "tests": "pm.test(\"Bad request - unknown payment provider\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
651 "preRequestScript": "",
652 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
653 "responses": [],
654 "pathVariableData": [],
655 "queryParams": [],
656 "headerData": [],
657 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
658 },
659 {
660 "id": "e7804abb-d83a-9879-0a4b-9095ceb7caf5",
661 "name": "Ackrila - Check - No Auth",
662 "description": "",
663 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
664 "method": "GET",
665 "currentHelper": "normal",
666 "helperAttributes": {},
667 "headers": "",
668 "data": [],
669 "rawModeData": "",
670 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits/1234",
671 "responses": [],
672 "pathVariableData": [],
673 "queryParams": [],
674 "headerData": [],
675 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
676 },
677 {
678 "id": "eab488f7-71bf-408b-e026-633874e3089b",
679 "name": "Ackrila - Debit - Bad Request (No providerTransactionId )",
680 "description": "",
681 "collectionId": "5083b177-b186-093d-c210-69615eb6dd14",
682 "method": "POST",
683 "headers": "",
684 "dataMode": "raw",
685 "data": [],
686 "rawModeData": "{\n \"provider\":{\n \"id\":23\n },\n \"player\":{\n \"accountNumber\":1801168\n },\n \"amount\":10000,\n \"currency\":\"BAM\",\n \"businessUnitId\":\"10\",\n \"sourceOfFunds\":\"terminal\"\n}",
687 "tests": "pm.test(\"Bad request - no providerTransactionId\", function () {\n pm.response.to.have.status(\"Bad Request\");\n pm.response.to.be.withBody;\n pm.response.to.be.json;\n});\n\nconst schema = {\n \"type\":\"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"object\",\n \"properties\": {\n \"errorCode\": {\n \"type\": \"string\"\n },\n \"errorMessages\": {\n \"type\": \"array\",\n \"items\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"string\"\n }\n ]\n }\n },\n \"required\": [\n \"errorCode\",\n \"errorMessages\"\n ]\n }\n },\n \"required\": [\n \"error\"\n ]\n};\n\npm.test('Schema is valid', function() {\n pm.response.to.have.jsonSchema(schema);\n});",
688 "preRequestScript": "",
689 "url": "https://tidra13.plusplus.rs/midas/api/v1/providers/ackrila/debits",
690 "responses": [],
691 "pathVariableData": [],
692 "queryParams": [],
693 "headerData": [],
694 "collection_id": "5083b177-b186-093d-c210-69615eb6dd14"
695 }
696 ]
697}