diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-14 19:03:55 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-14 19:03:55 +0200 |
commit | f5ba1a25cad80bff8c6e01f8d956e212be097ae7 (patch) | |
tree | 938188a544bfb4c911d74129c139d61a019a7d1f /contrib/bruno/configuration/rule/01-create.bru | |
parent | 1356ca0bc1488ca6a1c3f541358af459e3a4fda8 (diff) | |
download | warden-master.tar.bz2 warden-master.zip |
Diffstat (limited to 'contrib/bruno/configuration/rule/01-create.bru')
-rw-r--r-- | contrib/bruno/configuration/rule/01-create.bru | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/contrib/bruno/configuration/rule/01-create.bru b/contrib/bruno/configuration/rule/01-create.bru new file mode 100644 index 0000000..cc98aee --- /dev/null +++ b/contrib/bruno/configuration/rule/01-create.bru @@ -0,0 +1,52 @@ +meta { + name: 01-create + type: http + seq: 1 +} + +post { + url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/rule + body: json + auth: inherit +} + +body:json { + { + "id": "901", + "version": "1.0.0", + "description": "Number of outgoing transactions - debtor", + "configuration": { + "parameters": { + "max_query_range": 86400000 + }, + "exit_conditions": [ + { + "sub_rule_ref": ".x00", + "reason": "Incoming transaction is unsuccessful" + } + ], + "bands": [ + { + "sub_rule_ref": ".01", + "upper_limit": 2, + "reason": "The debtor has performed one transaction to date" + }, + { + "sub_rule_ref": ".02", + "lower_limit": 2, + "upper_limit": 3, + "reason": "The debtor has performed two transactions to date" + }, + { + "sub_rule_ref": ".03", + "lower_limit": 3, + "reason": "The debtor has performed three or more transactions to date" + } + ] + } + } +} + +settings { + encodeUrl: true +} |