-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRule28Tests.postman_collection.json
More file actions
657 lines (657 loc) · 104 KB
/
Rule28Tests.postman_collection.json
File metadata and controls
657 lines (657 loc) · 104 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
{
"info": {
"_postman_id": "34c2a7ad-d194-416d-8e85-a205cc2e4eb2",
"name": "Rule28Tests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Rule-028-Service",
"event": [
{
"listen": "test",
"script": {
"exec": [
"",
"",
"pm.test(\"should have status code of 200 \", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"",
"pm.test(\"should respond with correct network map\", function () {",
" const requestNetworkMap = JSON.parse(pm.request.body.raw).networkMap;",
" const responseNetworkMap = pm.response.json().networkMap;",
" pm.expect(requestNetworkMap).to.be.eql(responseNetworkMap);",
"});",
"",
"pm.test(\"should respond with correct transaction\", function () {",
" const requestTransaction = JSON.parse(pm.request.body.raw).transaction;",
" const responseTransaction = pm.response.json().transaction;",
" pm.expect(requestTransaction).to.eql(responseTransaction);",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-10-05\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-01-1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 01 for age 0\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"01\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-06T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"2021/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-01-2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 01 for age 17\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"01\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"2004/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-02-1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 02 for age 18\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"02\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"2003/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-02-2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 02 for age 29\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"02\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1992/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-03-1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 03 for age 30\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"03\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1991/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-03-2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 03 for age 49\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"03\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1972/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-04-1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 04 for age 50\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"04\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1971/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-04-2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 04 for age 51\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"04\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1970/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-04-3",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 04 for age 99\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"04\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1922/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
},
{
"name": "Rule-028-band-00",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"should have status code of 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"should return the correct age band 00 for age -1\", function () {",
" const response = pm.response.json().ruleResult;",
" pm.expect(response.subRuleRef).to.eql(\"00\")",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"transaction\": {\n \"TxTp\": \"pain.001.001.11\",\n \"CstmrCdtTrfInitn\": {\n \"GrpHdr\": {\n \"MsgId\": \"2669e349-500d-44ba-9e27-7767a16608a0\",\n \"CreDtTm\": \"2021-10-07T09:25:31.000Z\",\n \"NbOfTxs\": 1,\n \"InitgPty\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1967-11-23\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n }\n },\n \"PmtInf\": {\n \"PmtInfId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\",\n \"PmtMtd\": \"TRA\",\n \"ReqdAdvcTp\": {\n \"DbtAdvc\": {\n \"Cd\": \"ADWD\",\n \"Prtry\": \"Advice with transaction details\"\n }\n },\n \"ReqdExctnDt\": {\n \"Dt\": \"2021-10-07\",\n \"DtTm\": \"2021-10-07T09:25:31.000Z\"\n },\n \"Dbtr\": {\n \"Nm\": \"Ivan Reese Russel-Klein\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"2022/10/06\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-783078685\"\n }\n },\n \"DbtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"PASSPORT\"\n }\n }\n },\n \"Nm\": \"Ivan Russel-Klein\"\n },\n \"DbtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp001\"\n }\n }\n },\n \"CdtTrfTxInf\": {\n \"PmtId\": {\n \"EndToEndId\": \"b51ec534-ee48-4575-b6a9-ead2955b8069\"\n },\n \"PmtTpInf\": {\n \"CtgyPurp\": {\n \"Prtry\": \"TRANSFER\"\n }\n },\n \"Amt\": {\n \"InstdAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n }\n },\n \"EqvtAmt\": {\n \"Amt\": {\n \"Amt\": \"50431891779910900\",\n \"Ccy\": \"USD\"\n },\n \"CcyOfTrf\": \"USD\"\n }\n },\n \"ChrgBr\": \"DEBT\",\n \"CdtrAgt\": {\n \"FinInstnId\": {\n \"ClrSysMmbId\": {\n \"MmbId\": \"dfsp002\"\n }\n }\n },\n \"Cdtr\": {\n \"Nm\": \"April Sam Adamson\",\n \"Id\": {\n \"PrvtId\": {\n \"DtAndPlcOfBirth\": {\n \"BirthDt\": \"1923-04-26\",\n \"CityOfBirth\": \"Unknown\",\n \"CtryOfBirth\": \"ZZ\"\n },\n \"Othr\": {\n \"Id\": \"+27782722305\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n }\n },\n \"CtctDtls\": {\n \"MobNb\": \"+27-782722305\"\n }\n },\n \"CdtrAcct\": {\n \"Id\": {\n \"Othr\": {\n \"Id\": \"+27783078685\",\n \"SchmeNm\": {\n \"Prtry\": \"MSISDN\"\n }\n }\n },\n \"Nm\": \"April Adamson\"\n },\n \"Purp\": {\n \"Cd\": \"MP2P\"\n },\n \"RgltryRptg\": {\n \"Dtls\": {\n \"Tp\": \"BALANCE OF PAYMENTS\",\n \"Cd\": \"100\"\n }\n },\n \"RmtInf\": {\n \"Ustrd\": \"Payment of USD 49932566118723700.89 from Ivan to April\"\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"Cdtr\": {\n \"FrstNm\": \"Ivan\",\n \"MddlNm\": \"Reese\",\n \"LastNm\": \"Russel-Klein\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"Dbtr\": {\n \"FrstNm\": \"April\",\n \"MddlNm\": \"Sam\",\n \"LastNm\": \"Adamson\",\n \"MrchntClssfctnCd\": \"BLANK\"\n },\n \"DbtrFinSvcsPrvdrFees\": {\n \"Ccy\": \"USD\",\n \"Amt\": \"499325661187237\"\n },\n \"Xprtn\": \"2021-10-07T09:30:31.000Z\"\n }\n }\n }\n }\n },\n \"SplmtryData\": {\n \"Envlp\": {\n \"Doc\": {\n \"InitgPty\": {\n \"InitrTp\": \"CONSUMER\",\n \"Glctn\": {\n \"Lat\": \"-3.1291\",\n \"Long\": \"39.0006\"\n }\n }\n }\n }\n }\n }\n}\n,\n\n\"networkMap\": \n{\n \"_key\": \"26345403\",\n \"_id\": \"networkConfiguration/26345403\",\n \"_rev\": \"_cxc-1vO---\",\n \"messages\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"txTp\": \"pain.001.001.11\",\n \"channels\": [\n {\n \"id\": \"001@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"028@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"028@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"028@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"029@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"029@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"005@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n },\n {\n \"id\": \"002@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\",\n \"typologies\": [\n {\n \"id\": \"030@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"030@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"006@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n },\n {\n \"id\": \"031@1.0\",\n \"host\": \"https://frmfaas.sybrin.com/function/off-typology-processor\",\n \"cfg\": \"031@1.0\",\n \"rules\": [\n {\n \"id\": \"003@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n },\n {\n \"id\": \"007@1.0\",\n \"host\": \"http://openfaas:8080\",\n \"cfg\": \"1.0\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://gateway.openfaas:8080/function/off-rule-028/execute",
"protocol": "http",
"host": [
"gateway",
"openfaas"
],
"port": "8080",
"path": [
"function",
"off-rule-028",
"execute"
]
}
},
"response": []
}
]
}