aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/bruno/configuration/rule/01-create.bru
blob: cc98aee94f809e8069734f68eb41027fb3e0a0a4 (plain)
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
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
}